Files
rust/tests/ui/impl-trait/two_tait_defining_each_other2.next.stderr
albab-hasan 3df075cdaa point at the opaque when its hidden type cannot be inferred
the note for an uninferable hidden type now points at the opaque definition, unless the error already points inside it
2026-10-14 16:37:25 +06:00

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`.