rust/tests/ui/issues/issue-47094.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
271 B
Rust
Raw Normal View History

#[repr(C, u8)] //~ ERROR conflicting representation hints
2020-01-27 23:27:57 +00:00
//~^ WARN this was previously accepted
enum Foo {
A,
B,
}
#[repr(C)] //~ ERROR conflicting representation hints
2020-01-27 23:27:57 +00:00
//~^ WARN this was previously accepted
#[repr(u8)]
enum Bar {
A,
B,
}
fn main() {}