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

15 lines
189 B
Rust
Raw Normal View History

trait hax { }
2012-08-08 01:10:06 +00: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);
}