aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/traits5.rs
blob: 8b2fb9bc10d4da1b864b689b776fa603105886ef (plain)
1
2
3
4
5
6
7
8
9
trait Foo {
    const A: i32;

    fn test(self);
}

struct Bar;
impl Foo for Bar {}
// { dg-error "missing A, test in implementation of trait .Foo." "" { target *-*-* } .-1 }