2021-07-17 13:13:50 -05:00
|
|
|
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
2020-11-14 05:47:14 -06:00
|
|
|
--> $DIR/issue-49934.rs:10:5
|
2018-04-18 01:19:21 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
2021-07-17 13:13:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ not applicable here
|
|
|
|
LL | println!("Hello, world!");
|
|
|
|
| -------------------------- not a `struct`, `enum` or `union`
|
2018-04-18 01:19:21 -05:00
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
2020-11-14 05:47:14 -06:00
|
|
|
--> $DIR/issue-49934.rs:14:5
|
2018-04-18 01:19:21 -05:00
|
|
|
|
|
2019-09-09 07:26:25 -05:00
|
|
|
LL | #[derive(Debug)]
|
2021-07-17 13:13:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ not applicable here
|
|
|
|
LL | "Hello, world!";
|
|
|
|
| ---------------- not a `struct`, `enum` or `union`
|
2018-04-18 01:19:21 -05:00
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
2020-11-14 05:47:14 -06:00
|
|
|
--> $DIR/issue-49934.rs:18:5
|
2018-04-18 01:19:21 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(Debug)]
|
2021-07-17 13:13:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ not applicable here
|
|
|
|
LL | let _ = "Hello, world!";
|
|
|
|
| ------------------------ not a `struct`, `enum` or `union`
|
2018-04-18 01:19:21 -05:00
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
2020-11-14 05:47:14 -06:00
|
|
|
--> $DIR/issue-49934.rs:22:13
|
2018-04-18 01:19:21 -05:00
|
|
|
|
|
|
|
|
LL | let _ = #[derive(Debug)] "Hello, world!";
|
2021-07-17 13:13:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ --------------- not a `struct`, `enum` or `union`
|
|
|
|
| |
|
|
|
|
| not applicable here
|
2018-04-18 01:19:21 -05:00
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
2020-11-14 05:47:14 -06:00
|
|
|
--> $DIR/issue-49934.rs:27:9
|
2018-04-18 01:19:21 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(Debug)]
|
2021-07-17 13:13:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ not applicable here
|
|
|
|
LL | "Hello, world!",
|
|
|
|
| --------------- not a `struct`, `enum` or `union`
|
2018-04-18 01:19:21 -05:00
|
|
|
|
2020-11-14 05:47:14 -06:00
|
|
|
error: aborting due to 5 previous errors
|
2020-03-11 10:30:09 -05:00
|
|
|
|
2020-11-14 05:47:14 -06:00
|
|
|
For more information about this error, try `rustc --explain E0774`.
|