rust/src/test/run-pass/issue-2734.rs

15 lines
189 B
Rust
Raw Normal View History

trait hax { }
2012-08-07 20:10:06 -05:00
impl <A> A: hax { }
fn perform_hax<T: Owned>(x: @T) -> hax {
x as hax
}
fn deadcode() {
perform_hax(@~"deadcode");
}
fn main() {
let _ = perform_hax(@42);
}