blob: 67277731293a7d0980856ad34cf90a1ac717b327 [file] [log] [blame]
//@ compile-flags: --crate-type=lib
#![allow(incomplete_features)]
#![feature(unsafe_fields)]
// Parse errors even *with* unsafe_fields, which would make the compiler early-exit otherwise.
enum A {
TupleLike(unsafe u32), //~ ERROR
}
struct B(unsafe u32); //~ ERROR