Debian Codegraph @

gcc/testsuite/rust/compile/traits4.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 trait Foo {
5 const A: i32;
6
7 fn test(self);
8 }
9
10 struct Bar;
11 impl Foo for Bar {
12 // { dg-error "missing A in implementation of trait .Foo." "" { target *-*-* } .-1 }
13 fn test(self) {}
14 }
15
16 fn main() {
17 let a = Bar;
18 a.test();
19 }