]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0221.stderr
Merge commit '48d60ab7c505c6c1ebb042eacaafd8dc9f7a9267' into libgccjit-codegen
[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    |                ^^^^^^^^^
30    |                |
31    |                ambiguous associated type `Err`
32    |                help: use fully qualified syntax to disambiguate: `<Self as My>::Err`
33    |
34    = note: associated type `Self` could derive from `FromStr`
35
36 error: aborting due to 2 previous errors
37
38 For more information about this error, try `rustc --explain E0221`.