mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
12 lines
326 B
Rust
12 lines
326 B
Rust
#![crate_type = "lib"]
|
|
#![feature(unnamed_fields)]
|
|
#![allow(unused, incomplete_features)]
|
|
|
|
enum K {
|
|
M {
|
|
_ : struct { field: u8 },
|
|
//~^ error: unnamed fields are not allowed outside of structs or unions
|
|
//~| error: anonymous structs are not allowed outside of unnamed struct or union fields
|
|
}
|
|
}
|