summary refs log tree commit diff
path: root/src/test/run-pass/issue-2734.rs
blob: 867e87e00aeaa622f945ee675303fa9324c5ee8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// xfail-test
iface hax { } 
impl <A> of hax for A { } 

fn perform_hax<T>(x: @T) -> hax {
    x as hax 
}

fn deadcode() {
    perform_hax(@"deadcode");
}

fn main() {
    let _ = perform_hax(@42);
}