// run-pass #![allow(unused_assignments)] #![allow(unused_variables)] use std::fmt; struct NoisyDrop(#[allow(unused_tuple_struct_fields)] T); impl Drop for NoisyDrop { fn drop(&mut self) {} } struct Bar(#[allow(unused_tuple_struct_fields)] [*const NoisyDrop; 2]); fn fine() { let (u,b); u = vec![43]; b = Bar([&NoisyDrop(&u), &NoisyDrop(&u)]); } #[allow(unused_tuple_struct_fields)] struct Bar2(*const NoisyDrop, *const NoisyDrop); fn lolwut() { let (u,v); u = vec![43]; v = Bar2(&NoisyDrop(&u), &NoisyDrop(&u)); } fn main() { fine(); lolwut() }