blob: 5109511f95a6b4600ae006ab017cfa6ac15f1da0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// run-rustfix
trait Foo {}
trait Bar {
fn hello(&self) {}
}
struct S;
impl Foo for S {}
impl Bar for S {}
fn test(foo: impl Foo + Bar) {
foo.hello(); //~ ERROR E0599
}
fn main() {
test(S);
}
|