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