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

5 lines
68 B
Rust
Raw Normal View History

2011-07-27 07:19:39 -05:00
fn leaky[T](t: &T) { }
2011-07-27 07:19:39 -05:00
fn main() { let x = @10; leaky[@int](x); }