False positive for question_mark lint with a pointer type #7910
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
Lint name:
clippy::question_mark
I tried this code:
I expected to see this happen: no warnings.
Instead, this happened:
If you try to follow the suggestion that clippy makes, compilation fails:
Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: