]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0221.stderr
Move some E0XXX to `ui`
[rust.git] / src / test / ui / error-codes / E0221.stderr
1 error[E0221]: ambiguous associated type `A` in bounds of `Self`
2   --> $DIR/E0221.rs:21:16
3    |
4 15 |     type A: T1;
5    |     ----------- ambiguous `A` from `Foo`
6 ...
7 19 |     type A: T2;
8    |     ----------- ambiguous `A` from `Bar`
9 20 |     fn do_something() {
10 21 |         let _: Self::A;
11    |                ^^^^^^^ ambiguous associated type `A`
12
13 error[E0221]: ambiguous associated type `Err` in bounds of `Self`
14   --> $DIR/E0221.rs:31:16
15    |
16 29 |     type Err: T3;
17    |     ------------- ambiguous `Err` from `My`
18 30 |     fn test() {
19 31 |         let _: Self::Err;
20    |                ^^^^^^^^^ ambiguous associated type `Err`
21    |
22 note: associated type `Self` could derive from `std::str::FromStr`
23   --> $DIR/E0221.rs:31:16
24    |
25 31 |         let _: Self::Err;
26    |                ^^^^^^^^^
27
28 error: aborting due to 2 previous errors
29