mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 01:47:38 +00:00
10 lines
217 B
Rust
10 lines
217 B
Rust
![]() |
//@ compile-flags: --crate-type=lib
|
||
|
#![deny(unused_attributes)]
|
||
|
|
||
|
#[repr()] //~ ERROR unused attribute
|
||
|
#[repr(packed)] //~ ERROR attribute should be applied to a struct or union
|
||
|
pub enum Foo {
|
||
|
Bar,
|
||
|
Baz(i32),
|
||
|
}
|