blob: 7357c22f7d67ed4963386cfe521c45f61ce146d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
trait Foo {
fn Bar() -> i32 {}
// { dg-error "expected .i32. got .()." "" { target *-*-* } .-1 }
}
struct Baz;
impl Foo for Baz {
fn Bar() {}
// { dg-error "expected .i32. got .()." "" { target *-*-* } .-1 }
// { dg-error "method .Bar. has an incompatible type for trait .Foo." "" { target *-*-* } .-2 }
}
fn main() {}
|