]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0034.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[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 }