blob: 5669073f4abb75fdc22b5472be4d6f33db37d1b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
error[E0034]: multiple applicable items in scope
--> $DIR/feature-gate-supertrait-item-shadowing.rs:13:7
|
LL | x.method();
| ^^^^^^ multiple `method` found
|
note: candidate #1 is defined in the trait `Sup`
--> $DIR/feature-gate-supertrait-item-shadowing.rs:2:5
|
LL | fn method(&self) {}
| ^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `Trait`
--> $DIR/feature-gate-supertrait-item-shadowing.rs:6:5
|
LL | fn method(&self) {}
| ^^^^^^^^^^^^^^^^
help: disambiguate the method for candidate #1
|
LL - x.method();
LL + Sup::method(&x);
|
help: disambiguate the method for candidate #2
|
LL - x.method();
LL + Trait::method(&x);
|
error[E0034]: multiple applicable items in scope
--> $DIR/feature-gate-supertrait-item-shadowing.rs:18:7
|
LL | 1.method();
| ^^^^^^ multiple `method` found
|
note: candidate #1 is defined in an impl of the trait `Sup` for the type `i32`
--> $DIR/feature-gate-supertrait-item-shadowing.rs:2:5
|
LL | fn method(&self) {}
| ^^^^^^^^^^^^^^^^
note: candidate #2 is defined in an impl of the trait `Trait` for the type `i32`
--> $DIR/feature-gate-supertrait-item-shadowing.rs:6:5
|
LL | fn method(&self) {}
| ^^^^^^^^^^^^^^^^
help: disambiguate the method for candidate #1
|
LL - 1.method();
LL + Sup::method(&1);
|
help: disambiguate the method for candidate #2
|
LL - 1.method();
LL + Trait::method(&1);
|
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0034`.
|