2012-07-31 10:27:51 -07:00
|
|
|
trait hax { }
|
2012-08-07 18:10:06 -07:00
|
|
|
impl <A> A: hax { }
|
2012-06-28 19:26:12 -04:00
|
|
|
|
2012-09-07 14:52:28 -07:00
|
|
|
fn perform_hax<T: Owned>(x: @T) -> hax {
|
2012-06-28 19:26:12 -04:00
|
|
|
x as hax
|
|
|
|
}
|
|
|
|
|
|
|
|
fn deadcode() {
|
2012-07-13 22:57:48 -07:00
|
|
|
perform_hax(@~"deadcode");
|
2012-06-28 19:26:12 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = perform_hax(@42);
|
|
|
|
}
|