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

15 lines
195 B
Rust
Raw Normal View History

trait hax { }
impl <A> of hax for A { }
fn perform_hax<T: owned>(x: @T) -> hax {
x as hax
}
fn deadcode() {
perform_hax(@~"deadcode");
}
fn main() {
let _ = perform_hax(@42);
}