]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-ambig-two-traits-from-impls.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / ui / methods / method-ambig-two-traits-from-impls.rs
1 trait A { fn foo(self); }
2 trait B { fn foo(self); }
3
4 struct AB {}
5
6 impl A for AB {
7     fn foo(self) {}
8 }
9
10 impl B for AB {
11     fn foo(self) {}
12 }
13
14 fn main() {
15     AB {}.foo();  //~ ERROR E0034
16 }