Confusion about future_prelude_collision #86633
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2021
Area: The 2021 edition
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: No warning
Instead, this happened: Got the warning:
AFAIK, this should not be ambiguous, since it is an inherent method, which should take priority over the TryInto trait. Also, the suggestion doesn't make much sense, since it just surrounds the variable with parenthesis, which have no effect (and indeed, can be removed even on 2021).
Meta
rustc 1.55.0-nightly (7c3872e6b 2021-06-24)
cc @m-ou-se
The text was updated successfully, but these errors were encountered: