]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0221.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[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 error[E0221]: ambiguous associated type `Err` in bounds of `Self`
14   --> $DIR/E0221.rs:21:16
15    |
16 LL |     type Err: T3;
17    |     ------------- ambiguous `Err` from `My`
18 LL |     fn test() {
19 LL |         let _: Self::Err;
20    |                ^^^^^^^^^ ambiguous associated type `Err`
21    |
22 note: associated type `Self` could derive from `std::str::FromStr`
23   --> $DIR/E0221.rs:21:16
24    |
25 LL |         let _: Self::Err;
26    |                ^^^^^^^^^
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0221`.