]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0777.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0777.stderr
1 error[E0777]: expected path to a trait, found literal
2   --> $DIR/E0777.rs:1:10
3    |
4 LL | #[derive("Clone")]
5    |          ^^^^^^^ not a trait
6    |
7    = help: try using `#[derive(Clone)]`
8
9 error[E0777]: expected path to a trait, found literal
10   --> $DIR/E0777.rs:2:10
11    |
12 LL |   #[derive("Clone
13    |  __________^
14 LL | | ")]
15    | |_^ not a trait
16    |
17    = help: for example, write `#[derive(Debug)]` for `Debug`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0777`.