]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-impl-wrong-type.stderr
Auto merge of #89337 - mbrubeck:vec-leak, r=m-ou-se
[rust.git] / src / test / 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: u32;
5    |                --- type in trait
6 ...
7 LL |     const BAR: i32 = -1;
8    |                ^^^ expected `u32`, found `i32`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0326`.