blob: 0a96c1223da36a475e769f0aa1880a59bd3b2227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
trait A { fn foo(); }
trait B { fn foo(); }
struct AB {}
impl A for AB {
fn foo() {}
}
impl B for AB {
fn foo() {}
}
fn main() {
AB::foo(); //~ ERROR E0034
}
|