]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-ambig-two-traits-from-impls.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[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 }