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

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

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

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