3 // Test for https://github.com/rust-lang/rust-clippy/issues/4968
5 #![warn(clippy::unsound_collection_transmute)]
11 use std::mem::{self, ManuallyDrop};
14 fn func<T: Trait>(slice: Vec<T::Assoc>) {
16 let _: Vec<ManuallyDrop<T::Assoc>> = mem::transmute(slice);