]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0221.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0221.stderr
1 error[E0221]: ambiguous associated type `A` in bounds of `Self`
2   --> $DIR/E0221.rs:11:16
3    |
4 LL |     type A: T1;
5    |     ----------- ambiguous `A` from `Foo`
6 ...
7 LL |     type A: T2;
8    |     ----------- ambiguous `A` from `Bar`
9 LL |     fn do_something() {
10 LL |         let _: Self::A;
11    |                ^^^^^^^ ambiguous associated type `A`
12    |
13 help: use fully qualified syntax to disambiguate
14    |
15 LL |         let _: <Self as Foo>::A;
16    |                ~~~~~~~~~~~~~~~
17 help: use fully qualified syntax to disambiguate
18    |
19 LL |         let _: <Self as Bar>::A;
20    |                ~~~~~~~~~~~~~~~
21
22 error[E0221]: ambiguous associated type `Err` in bounds of `Self`
23   --> $DIR/E0221.rs:21:16
24    |
25 LL |     type Err: T3;
26    |     ------------- ambiguous `Err` from `My`
27 LL |     fn test() {
28 LL |         let _: Self::Err;
29    |                ^^^^^^^^^ ambiguous associated type `Err`
30    |
31    = note: associated type `Self` could derive from `FromStr`
32 help: use fully qualified syntax to disambiguate
33    |
34 LL |         let _: <Self as My>::Err;
35    |                ~~~~~~~~~~~~~~
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0221`.