]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr
Auto merge of #83572 - pkubaj:patch-1, r=nagisa
[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: usize;
5    |                  ----- type in trait
6 ...
7 LL |     const VALUE: i32 = 0;
8    |                  ^^^ expected `usize`, found `i32`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0326`.