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