rust/tests/ui/generics/generic-ivec-leak.rs
2023-01-11 09:32:08 +00:00

6 lines
180 B
Rust

// 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]); }