mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
the note for an uninferable hidden type now points at the opaque definition, unless the error already points inside it
16 lines
418 B
Plaintext
16 lines
418 B
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/two_tait_defining_each_other2.rs:12:11
|
|
|
|
|
LL | fn muh(x: A) -> B {
|
|
| ^ cannot infer type
|
|
|
|
|
note: cannot infer type of hidden type of opaque
|
|
--> $DIR/two_tait_defining_each_other2.rs:6:10
|
|
|
|
|
LL | type A = impl Foo;
|
|
| ^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|