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

10 lines
116 B
Rust
Raw Normal View History

2012-12-06 18:13:40 -06:00
// xfail-test
enum x = ();
impl x {
unsafe fn with() { } // This should fail
}
fn main() {
x(()).with();
}