]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-impl-wrong-type.rs
Rollup merge of #86011 - tlyu:correct-sized-bound-spans, r=estebank
[rust.git] / src / test / ui / associated-consts / associated-const-impl-wrong-type.rs
1 trait Foo {
2     const BAR: u32;
3 }
4
5 struct SignedBar;
6
7 impl Foo for SignedBar {
8     const BAR: i32 = -1;
9     //~^ ERROR implemented const `BAR` has an incompatible type for trait [E0326]
10 }
11
12 fn main() {}