Distinguish scoped conversion fixtures
This commit is contained in:
+4
-4
@@ -651,12 +651,12 @@ fn test_scoped_type_rejects_types_that_need_drop() {
|
||||
|
||||
#[test]
|
||||
fn test_try_as_type_scoped_returns_none_for_mismatched_layout() {
|
||||
let mut erased = TypeErasedVec::new(Vec::<u64>::new());
|
||||
let mut erased_u64 = TypeErasedVec::new(Vec::<u64>::new());
|
||||
|
||||
assert!(erased.try_as_type_scoped::<u32>().is_none());
|
||||
assert!(erased_u64.try_as_type_scoped::<u32>().is_none());
|
||||
|
||||
let mut erased = TypeErasedVec::new(Vec::<u32>::new());
|
||||
assert!(erased.try_as_type_scoped::<u32>().is_some());
|
||||
let mut erased_u32 = TypeErasedVec::new(Vec::<u32>::new());
|
||||
assert!(erased_u32.try_as_type_scoped::<u32>().is_some());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user