rust/src/test/run-pass/issue-2734.rs
2012-06-28 19:26:12 -04:00

16 lines
201 B
Rust

// xfail-test
iface hax { }
impl <A> of hax for A { }
fn perform_hax<T>(x: @T) -> hax {
x as hax
}
fn deadcode() {
perform_hax(@"deadcode");
}
fn main() {
let _ = perform_hax(@42);
}