Skip to content

Commit 58d5416

Browse files
emiliombrubeck
authored andcommitted
Add a test for #139.
Works now on trunk. Closes #139
1 parent 26ea2ca commit 58d5416

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -2351,6 +2351,13 @@ mod tests {
23512351
assert_eq!(v[..], ['a']);
23522352
}
23532353

2354+
// #139
2355+
#[test]
2356+
fn uninhabited() {
2357+
enum Void {}
2358+
let _sv = SmallVec::<[Void; 8]>::new();
2359+
}
2360+
23542361
#[test]
23552362
fn grow_spilled_same_size() {
23562363
let mut v: SmallVec<[u8; 2]> = SmallVec::new();

0 commit comments

Comments
 (0)