LL | #[repr(nothing)]
| ^^^^^^^^^^^^^^^^
LL | let _x = 0;
- | ----------- not a struct, enum or union
+ | ----------- not a struct, enum, or union
error[E0517]: attribute should not be applied to an expression
--> $DIR/issue-43988.rs:18:5
LL | / loop {
LL | | ()
LL | | };
- | |_____- not defining a struct, enum or union
+ | |_____- not defining a struct, enum, or union
error[E0517]: attribute should not be applied to a statement
--> $DIR/issue-43988.rs:24:5
LL | #[repr]
| ^^^^^^^
LL | let _y = "123";
- | --------------- not a struct, enum or union
+ | --------------- not a struct, enum, or union
error[E0518]: attribute should be applied to function or closure
--> $DIR/issue-43988.rs:31:5
--> $DIR/issue-43988.rs:35:14
|
LL | let _z = #[repr] 1;
- | ^^^^^^^ - not defining a struct, enum or union
+ | ^^^^^^^ - not defining a struct, enum, or union
error: aborting due to 9 previous errors