Skip to content

Commit

Permalink
Auto merge of #170 - servo:test-139, r=SimonSapin
Browse files Browse the repository at this point in the history
Add a test for #139.

Works now on trunk.

Closes #139
  • Loading branch information
bors-servo committed Oct 21, 2019
2 parents bef9925 + 99be50b commit 18f13df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib.rs
Expand Up @@ -2356,6 +2356,13 @@ mod tests {
assert_eq!(v[..], ['a']);
}

// #139
#[test]
fn uninhabited() {
enum Void {}
let _sv = SmallVec::<[Void; 8]>::new();
}

#[test]
fn grow_spilled_same_size() {
let mut v: SmallVec<[u8; 2]> = SmallVec::new();
Expand Down

0 comments on commit 18f13df

Please sign in to comment.