Debian Codegraph @

gcc/testsuite/rust/compile/issue-2478.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 struct Bar;
5
6 trait Foo {
7 const N: u32;
8
9 fn M();
10 }
11
12 impl Foo for Bar {
13 // { dg-error "missing N, M in implementation of trait .Foo." "" { target *-*-* } .-1 }
14 fn N() {}
15 // { dg-error "method .N. is not a member of trait .Foo." "" { target *-*-* } .-1 }
16 }