]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / issue-70942-trait-vs-impl-mismatch.stderr
1 error[E0326]: implemented const `VALUE` has an incompatible type for trait
2   --> $DIR/issue-70942-trait-vs-impl-mismatch.rs:8:18
3    |
4 LL |     const VALUE: i32 = 0;
5    |                  ^^^ expected `usize`, found `i32`
6    |
7 note: type in trait
8   --> $DIR/issue-70942-trait-vs-impl-mismatch.rs:2:18
9    |
10 LL |     const VALUE: usize;
11    |                  ^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0326`.