diff --git a/tests/tests.rs b/tests/tests.rs index 3261df3..5a21829 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -164,6 +164,14 @@ fn test_compact_size() { assert!(mem::size_of::() <= 24); } +#[test] +fn test_still_works_with_option_arrayvec() { + type RefArray = ArrayVec<[&'static i32; 2]>; + let array = Some(RefArray::new()); + assert!(array.is_some()); + println!("{:?}", array); +} + #[test] fn test_drain() { let mut v = ArrayVec::from([0; 8]);