rust/src/test/compile-fail/issue-2074.rs

13 lines
216 B
Rust
Raw Normal View History

2012-10-15 14:00:32 -05:00
// xfail-test
fn main() {
let one = fn@() -> uint {
enum r { a };
return a as uint;
};
let two = fn@() -> uint {
enum r { a };
return a as uint;
};
one(); two();
}