diff --git a/lib.rs b/lib.rs index 8f56c83..96d87bf 100644 --- a/lib.rs +++ b/lib.rs @@ -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();