Files
rust/tests/ui/higher-ranked
Jacob Pratt 8abb416b29 Rollup merge of #162172 - Albab-Hasan:opaque-hidden-type-inference-note, r=chenyukang
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
2026-09-11 00:03:09 -04:00
..
2026-08-13 12:29:56 +02:00