Add test case for issue #2734 (xfailed)
This commit is contained in:
parent
6fc730baf6
commit
b2b498183a
1 changed files with 15 additions and 0 deletions
15
src/test/run-pass/issue-2734.rs
Normal file
15
src/test/run-pass/issue-2734.rs
Normal file
|
@ -0,0 +1,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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue