1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2 --> $DIR/issue-49934.rs:10:5
5 | ^^^^^^^^^^^^^^^^ not applicable here
6 LL | println!("Hello, world!");
7 | -------------------------- not a `struct`, `enum` or `union`
9 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
10 --> $DIR/issue-49934.rs:14:5
13 | ^^^^^^^^^^^^^^^^ not applicable here
15 | ---------------- not a `struct`, `enum` or `union`
17 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
18 --> $DIR/issue-49934.rs:18:5
21 | ^^^^^^^^^^^^^^^^ not applicable here
22 LL | let _ = "Hello, world!";
23 | ------------------------ not a `struct`, `enum` or `union`
25 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
26 --> $DIR/issue-49934.rs:22:13
28 LL | let _ = #[derive(Debug)] "Hello, world!";
29 | ^^^^^^^^^^^^^^^^ --------------- not a `struct`, `enum` or `union`
33 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
34 --> $DIR/issue-49934.rs:27:9
37 | ^^^^^^^^^^^^^^^^ not applicable here
39 | --------------- not a `struct`, `enum` or `union`
41 error: aborting due to 5 previous errors
43 For more information about this error, try `rustc --explain E0774`.