diff --git a/lib.rs b/lib.rs index 7004a62..3702729 100644 --- a/lib.rs +++ b/lib.rs @@ -2346,6 +2346,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();