1 warning: `repr` attribute must have a hint
2 --> $DIR/issue-43988.rs:34:5
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>
11 warning: `repr` attribute must have a hint
12 --> $DIR/issue-43988.rs:46:14
14 LL | let _z = #[repr] 1;
15 | ^^^^^^^ needs a hint
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>
20 error[E0518]: attribute should be applied to function or closure
21 --> $DIR/issue-43988.rs:15:5
26 | ----------- not a function or closure
28 error[E0518]: attribute should be applied to function or closure
29 --> $DIR/issue-43988.rs:20:5
34 | ----------- not a function or closure
36 error[E0517]: attribute should not be applied to a statement
37 --> $DIR/issue-43988.rs:24:5
42 | ----------- not a struct, enum or union
44 error[E0517]: attribute should not be applied to an expression
45 --> $DIR/issue-43988.rs:28:5
47 LL | #[repr(something_not_real)]
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 | |_____- not defining a struct, enum or union
54 error[E0517]: attribute should not be applied to a statement
55 --> $DIR/issue-43988.rs:34:5
60 | --------------- not a struct, enum or union
62 error[E0518]: attribute should be applied to function or closure
63 --> $DIR/issue-43988.rs:42:5
68 | ----- not a function or closure
70 error[E0517]: attribute should not be applied to an expression
71 --> $DIR/issue-43988.rs:46:14
73 LL | let _z = #[repr] 1;
74 | ^^^^^^^ - not defining a struct, enum or union
76 error: aborting due to 7 previous errors
78 Some errors occurred: E0517, E0518.
79 For more information about an error, try `rustc --explain E0517`.