question_mark lint gives invalid suggestion on nightly #12412
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
Applying the suggestion results in a compilation error.
Lint Name
question_mark
Reproducer
I tried this code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=92ae818b63db5e45e9c03f8c3f79e2bd
I saw this happen:
I expected to see this happen:
no warning
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: