3fa8692a5e
The code was previously suggesting `#[repr(C, packed, ...)]` for incorrect uses of `repr` (e.g. `#[repr = "C"]`). This change suggests the usage of `#[repr(C)]` instead. r? @estebank ref #61286
21 lines
471 B
Plaintext
21 lines
471 B
Plaintext
error: malformed `repr` attribute input
|
|
--> $DIR/repr.rs:1:1
|
|
|
|
|
LL | #[repr]
|
|
| ^^^^^^^ help: must be of the form: `#[repr(C)]`
|
|
|
|
error: malformed `repr` attribute input
|
|
--> $DIR/repr.rs:4:1
|
|
|
|
|
LL | #[repr = "B"]
|
|
| ^^^^^^^^^^^^^ help: must be of the form: `#[repr(C)]`
|
|
|
|
error: malformed `repr` attribute input
|
|
--> $DIR/repr.rs:7:1
|
|
|
|
|
LL | #[repr = "C"]
|
|
| ^^^^^^^^^^^^^ help: must be of the form: `#[repr(C)]`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|