mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
mention the opaque when its hidden type cannot be inferred when the hidden type of an opaque was never constrained, typeck reported `E0282` with only the shared cannot infer type label. nothing in the output said an opaque was involved, so the error read like an ordinary local inference failure. the unconstrained hidden type arm now adds a note naming the opaque as the source of the ambiguity. fixes https://github.com/rust-lang/rust/issues/146231 r? @lcnr