mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
17 lines
328 B
Rust
17 lines
328 B
Rust
#[non_exhaustive(anything)]
|
|
//~^ ERROR malformed `non_exhaustive` attribute
|
|
struct Foo;
|
|
|
|
#[non_exhaustive]
|
|
//~^ ERROR attribute should be applied to a struct or enum [E0701]
|
|
trait Bar { }
|
|
|
|
#[non_exhaustive]
|
|
//~^ ERROR attribute should be applied to a struct or enum [E0701]
|
|
union Baz {
|
|
f1: u16,
|
|
f2: u16
|
|
}
|
|
|
|
fn main() { }
|