2012-06-28 18:26:12 -05:00
|
|
|
iface hax { }
|
|
|
|
impl <A> of hax for A { }
|
|
|
|
|
|
|
|
fn perform_hax<T>(x: @T) -> hax {
|
|
|
|
x as hax
|
|
|
|
}
|
|
|
|
|
|
|
|
fn deadcode() {
|
2012-07-12 17:03:33 -05:00
|
|
|
perform_hax(@"deadcode"/~);
|
2012-06-28 18:26:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = perform_hax(@42);
|
|
|
|
}
|