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

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);
}