Regression of "mismatched types" error on trait method call with multiple candidates #101066
Labels
C-bug
Category: This is a bug.
P-critical
Critical priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code:
I expected to see this happen: Successful compilation.
Instead, this happened: I now get the following compiler error.
Version it worked on
It most recently worked on: stable channel Rust 1.63.0, and nightly-2022-08-17.
Version with regression
searched nightlies: from nightly-2022-08-11 to nightly-2022-08-26
regressed nightly: nightly-2022-08-18
searched commit range: 86c6ebe...9c20b2a
regressed commit: 9c20b2a
bisected with cargo-bisect-rustc v0.6.4
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
While reducing this example, I noticed that the following changes to the code will make the error go away:
N::try_into(i)
Error
in the associated type's trait boundError
specification in the where clause's trait boundThe text was updated successfully, but these errors were encountered: