summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0517.rs
blob: 1dcaa2d741f6f21c6999b910a3c5d8b080bd218a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[repr(C)] //~ ERROR: E0517
type Foo = u8;

#[repr(packed)] //~ ERROR: E0517
enum Foo2 {Bar, Baz}

#[repr(u8)] //~ ERROR: E0517
struct Foo3 {bar: bool, baz: bool}

#[repr(C)] //~ ERROR: E0517
impl Foo3 {
}

fn main() {
}