rust/src/test/run-pass/issue-2735.rs
2012-08-08 18:19:24 -07:00

15 lines
181 B
Rust

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