Debian Codegraph @

gcc/testsuite/rust/compile/traits5.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, test in implementation of trait .Foo." "" { target *-*-* } .-1 }