summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-49934.stderr
blob: f2ff541bb9925026215b068ea5c113467cee182d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
  --> $DIR/issue-49934.rs:10:5
   |
LL |     #[derive(Debug)]
   |     ^^^^^^^^^^^^^^^^ not applicable here
LL |     println!("Hello, world!");
   |     -------------------------- not a `struct`, `enum` or `union`

error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
  --> $DIR/issue-49934.rs:14:5
   |
LL |     #[derive(Debug)]
   |     ^^^^^^^^^^^^^^^^ not applicable here
LL |     "Hello, world!";
   |     ---------------- not a `struct`, `enum` or `union`

error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
  --> $DIR/issue-49934.rs:18:5
   |
LL |     #[derive(Debug)]
   |     ^^^^^^^^^^^^^^^^ not applicable here
LL |     let _ = "Hello, world!";
   |     ------------------------ not a `struct`, `enum` or `union`

error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
  --> $DIR/issue-49934.rs:22:13
   |
LL |     let _ = #[derive(Debug)] "Hello, world!";
   |             ^^^^^^^^^^^^^^^^ --------------- not a `struct`, `enum` or `union`
   |             |
   |             not applicable here

error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
  --> $DIR/issue-49934.rs:27:9
   |
LL |         #[derive(Debug)]
   |         ^^^^^^^^^^^^^^^^ not applicable here
LL |         "Hello, world!",
   |         --------------- not a `struct`, `enum` or `union`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0774`.