mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 17:07:36 +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),
|
|
}
|