summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-ivec-leak.rs
blob: 9610bdcb3382e95b9647afed62457cf3c73443b8 (plain)
1
2
3
4
5
// run-pass
#![allow(non_camel_case_types)]
enum wrapper<T> { wrapped(#[allow(unused_tuple_struct_fields)] T), }

pub fn main() { let _w = wrapper::wrapped(vec![1, 2, 3, 4, 5]); }