Skip to content

Commit 99be50b

Browse files
committed
Add a test for #139.
Works now on trunk. Closes #139
1 parent bef9925 commit 99be50b

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
@@ -2356,6 +2356,13 @@ mod tests {
23562356
assert_eq!(v[..], ['a']);
23572357
}
23582358

2359+
// #139
2360+
#[test]
2361+
fn uninhabited() {
2362+
enum Void {}
2363+
let _sv = SmallVec::<[Void; 8]>::new();
2364+
}
2365+
23592366
#[test]
23602367
fn grow_spilled_same_size() {
23612368
let mut v: SmallVec<[u8; 2]> = SmallVec::new();

0 commit comments

Comments
 (0)