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