609ffa1a89
- Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser
14 lines
227 B
Rust
14 lines
227 B
Rust
#[repr] //~ ERROR malformed `repr` attribute
|
|
struct _A {}
|
|
|
|
#[repr = "B"] //~ ERROR malformed `repr` attribute
|
|
struct _B {}
|
|
|
|
#[repr = "C"] //~ ERROR malformed `repr` attribute
|
|
struct _C {}
|
|
|
|
#[repr(C)]
|
|
struct _D {}
|
|
|
|
fn main() {}
|