rust_2021_prelude_collisions invalid suggestion when trait is glob imported #88471
Labels
A-edition-2021
Area: The 2021 edition
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
I tried this code:
This has the suggestion to replace the code with:
which is invalid syntax. The suggestion should be something like:
Found in 2021 crater run for:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: