aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/traits1.rs
blob: 355064eec1a9521484798c2a0c59d26cb0df16a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait Foo {
    fn Bar() -> i32 {}
    // { dg-error "expected .i32. got .()." "" { target *-*-* } .-1 }
}

struct Baz;

impl Foo for Baz {
    fn Barrr() {}
    // { dg-error "method .Barrr. is not a member of trait .Foo." "" { target *-*-* } .-1 }
}

fn main() {}