]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0517.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0517.rs
1 #[repr(C)] //~ ERROR: E0517
2 type Foo = u8;
3
4 #[repr(packed)] //~ ERROR: E0517
5 enum Foo2 {Bar, Baz}
6
7 #[repr(u8)] //~ ERROR: E0517
8 struct Foo3 {bar: bool, baz: bool}
9
10 #[repr(C)] //~ ERROR: E0517
11 impl Foo3 {
12 }
13
14 fn main() {
15 }