Skip to content

Commit b2b4981

Browse files
committed
Add test case for issue #2734 (xfailed)
1 parent 6fc730b commit b2b4981

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/run-pass/issue-2734.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// xfail-test
2+
iface hax { }
3+
impl <A> of hax for A { }
4+
5+
fn perform_hax<T>(x: @T) -> hax {
6+
x as hax
7+
}
8+
9+
fn deadcode() {
10+
perform_hax(@"deadcode");
11+
}
12+
13+
fn main() {
14+
let _ = perform_hax(@42);
15+
}

0 commit comments

Comments
 (0)