]> git.proxmox.com Git - rustc.git/blob - tests/ui/error-codes/E0034.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }