aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2478.rs
blob: 7fe4e2d2a94b7d085307117b31a9ce9b942564e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[lang = "sized"]
pub trait Sized {}

struct Bar;

trait Foo {
    const N: u32;

    fn M();
}

impl Foo for Bar {
    // { dg-error "missing N, M in implementation of trait .Foo." "" { target *-*-* } .-1 }
    fn N() {}
    // { dg-error "method .N. is not a member of trait .Foo." "" { target *-*-* } .-1 }
}