rust/src/test/run-pass/generic-ivec-leak.rs

5 lines
83 B
Rust

enum wrapper<T> { wrapped(T), }
fn main() { let w = wrapped(~[1, 2, 3, 4, 5]); }