]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | error[E0283]: type annotations needed |
2 | --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:17:11 | |
3 | | | |
4 | LL | thing.method(42); | |
923072b8 | 5 | | ^^^^^^ |
04454e1e FG |
6 | | |
7 | note: multiple `impl`s satisfying `Thing<bool>: Method<_>` found | |
8 | --> $DIR/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs:7:1 | |
9 | | | |
10 | LL | impl<X> Method<i32> for Thing<X> { | |
11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
12 | ... | |
13 | LL | impl<X> Method<u32> for Thing<X> { | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
923072b8 | 15 | help: try using a fully qualified path to specify the expected types |
04454e1e | 16 | | |
923072b8 FG |
17 | LL | <Thing<bool> as Method<T>>::method(thing, 42); |
18 | | +++++++++++++++++++++++++++++++++++ ~ | |
04454e1e | 19 | |
ed00b5ec | 20 | error: aborting due to previous error |
04454e1e | 21 | |
ed00b5ec | 22 | For more information about this error, try `rustc --explain E0283`. |