]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-ambig-two-traits-from-impls2.rs
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / methods / method-ambig-two-traits-from-impls2.rs
1 trait A { fn foo(); }
2 trait B { fn foo(); }
3
4 struct AB {}
5
6 impl A for AB {
7     fn foo() {}
8 }
9
10 impl B for AB {
11     fn foo() {}
12 }
13
14 fn main() {
15     AB::foo();  //~ ERROR E0034
16 }