mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
b1035d7f49
Prefer lower `TraitUpcasting` candidates in selection Fixes #135463. The underlying cause is this ambiguity, but it's more clear (and manifests as a coercion error, rather than a MIR validation error) when it's written the way I did in the UI test. Sorry this is cursed r? lcnr