mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 23:13:15 +00:00
Add test case for issue #2734 (xfailed)
This commit is contained in:
parent
6fc730baf6
commit
b2b498183a
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…
Reference in New Issue
Block a user