]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | warning: `repr` attribute must have a hint |
2 | --> $DIR/repr.rs:13:1 | |
3 | | | |
4 | LL | #[repr] | |
5 | | ^^^^^^^ needs a hint | |
6 | | | |
7 | = note: #[warn(bad_repr)] on by default | |
8 | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` | |
9 | = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> | |
10 | ||
11 | warning: `repr` attribute isn't configurable with a literal | |
12 | --> $DIR/repr.rs:17:1 | |
13 | | | |
14 | LL | #[repr = "B"] | |
15 | | ^^^^^^^^^^^^^ needs a hint | |
16 | | | |
17 | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` | |
18 | = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> | |
19 | ||
20 | warning: `repr` attribute isn't configurable with a literal | |
21 | --> $DIR/repr.rs:21:1 | |
22 | | | |
23 | LL | #[repr = "C"] | |
24 | | ^^^^^^^^^^^^^ help: give `repr` a hint: `#[repr(C)]` | |
25 |