rust/src/test/ui/error-codes/E0221.stderr

31 lines
908 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0221]: ambiguous associated type `A` in bounds of `Self`
--> $DIR/E0221.rs:21:16
|
2018-02-22 18:42:32 -06:00
LL | type A: T1;
2018-02-07 21:35:35 -06:00
| ----------- ambiguous `A` from `Foo`
...
2018-02-22 18:42:32 -06:00
LL | type A: T2;
2018-02-07 21:35:35 -06:00
| ----------- ambiguous `A` from `Bar`
2018-02-24 17:01:39 -06:00
LL | fn do_something() {
2018-02-22 18:42:32 -06:00
LL | let _: Self::A;
2018-02-07 21:35:35 -06:00
| ^^^^^^^ ambiguous associated type `A`
error[E0221]: ambiguous associated type `Err` in bounds of `Self`
--> $DIR/E0221.rs:31:16
|
2018-02-22 18:42:32 -06:00
LL | type Err: T3;
2018-02-07 21:35:35 -06:00
| ------------- ambiguous `Err` from `My`
2018-02-24 17:01:39 -06:00
LL | fn test() {
2018-02-22 18:42:32 -06:00
LL | let _: Self::Err;
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^ ambiguous associated type `Err`
|
note: associated type `Self` could derive from `std::str::FromStr`
--> $DIR/E0221.rs:31:16
|
2018-02-22 18:42:32 -06:00
LL | let _: Self::Err;
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0221`.