]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-49934.stderr
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-49934.stderr
1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2   --> $DIR/issue-49934.rs:10:5
3    |
4 LL |     #[derive(Debug)]
5    |     ^^^^^^^^^^^^^^^^ not applicable here
6 LL |     println!("Hello, world!");
7    |     -------------------------- not a `struct`, `enum` or `union`
8
9 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
10   --> $DIR/issue-49934.rs:14:5
11    |
12 LL |     #[derive(Debug)]
13    |     ^^^^^^^^^^^^^^^^ not applicable here
14 LL |     "Hello, world!";
15    |     ---------------- not a `struct`, `enum` or `union`
16
17 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
18   --> $DIR/issue-49934.rs:18:5
19    |
20 LL |     #[derive(Debug)]
21    |     ^^^^^^^^^^^^^^^^ not applicable here
22 LL |     let _ = "Hello, world!";
23    |     ------------------------ not a `struct`, `enum` or `union`
24
25 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
26   --> $DIR/issue-49934.rs:22:13
27    |
28 LL |     let _ = #[derive(Debug)] "Hello, world!";
29    |             ^^^^^^^^^^^^^^^^ --------------- not a `struct`, `enum` or `union`
30    |             |
31    |             not applicable here
32
33 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
34   --> $DIR/issue-49934.rs:27:9
35    |
36 LL |         #[derive(Debug)]
37    |         ^^^^^^^^^^^^^^^^ not applicable here
38 LL |         "Hello, world!",
39    |         --------------- not a `struct`, `enum` or `union`
40
41 error: aborting due to 5 previous errors
42
43 For more information about this error, try `rustc --explain E0774`.