rust/src/test/run-pass/leak-box-as-tydesc.rs

5 lines
68 B
Rust

fn leaky[T](&T t) { }
fn main() { auto x = @10; leaky[@int](x); }