1 error: malformed `repr` attribute input
2 --> $DIR/issue-43988.rs:24:5
5 | ^^^^^^^ help: must be of the form: `#[repr(C)]`
7 error: malformed `repr` attribute input
8 --> $DIR/issue-43988.rs:35:14
10 LL | let _z = #[repr] 1;
11 | ^^^^^^^ help: must be of the form: `#[repr(C)]`
13 error[E0518]: attribute should be applied to function or closure
14 --> $DIR/issue-43988.rs:5:5
19 | ----------- not a function or closure
21 error[E0518]: attribute should be applied to function or closure
22 --> $DIR/issue-43988.rs:10:5
27 | ----------- not a function or closure
29 error[E0517]: attribute should not be applied to a statement
30 --> $DIR/issue-43988.rs:14:5
35 | ----------- not a struct, enum, or union
37 error[E0517]: attribute should not be applied to an expression
38 --> $DIR/issue-43988.rs:18:5
40 LL | #[repr(something_not_real)]
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 | |_____- not defining a struct, enum, or union
47 error[E0517]: attribute should not be applied to a statement
48 --> $DIR/issue-43988.rs:24:5
53 | --------------- not a struct, enum, or union
55 error[E0518]: attribute should be applied to function or closure
56 --> $DIR/issue-43988.rs:31:5
61 | ----- not a function or closure
63 error[E0517]: attribute should not be applied to an expression
64 --> $DIR/issue-43988.rs:35:14
66 LL | let _z = #[repr] 1;
67 | ^^^^^^^ - not defining a struct, enum, or union
69 error: aborting due to 9 previous errors
71 Some errors have detailed explanations: E0517, E0518.
72 For more information about an error, try `rustc --explain E0517`.