]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-consts/associated-const-impl-wrong-type.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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() {}