15 lines
181 B
Rust
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);
|
|
}
|