]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-consts/associated-const-impl-wrong-type.stderr
add tests for 107090
[rust.git] / tests / ui / associated-consts / associated-const-impl-wrong-type.stderr
1 error[E0326]: implemented const `BAR` has an incompatible type for trait
2   --> $DIR/associated-const-impl-wrong-type.rs:8:16
3    |
4 LL |     const BAR: i32 = -1;
5    |                ^^^ expected `u32`, found `i32`
6    |
7 note: type in trait
8   --> $DIR/associated-const-impl-wrong-type.rs:2:16
9    |
10 LL |     const BAR: u32;
11    |                ^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0326`.