]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0034.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0034.rs
1 struct Test;
2
3 trait Trait1 {
4     fn foo();
5 }
6
7 trait Trait2 {
8     fn foo();
9 }
10
11 impl Trait1 for Test {
12     fn foo() {}
13 }
14
15 impl Trait2 for Test {
16     fn foo() {}
17 }
18
19 fn main() {
20     Test::foo() //~ ERROR multiple applicable items in scope
21 }