]>
Commit | Line | Data |
---|---|---|
1 | // non rustfixable | |
2 | #![allow(unreachable_code)] | |
3 | #![allow(dead_code)] | |
4 | #![warn(clippy::question_mark_used)] | |
5 | ||
6 | fn other_function() -> Option<i32> { | |
7 | Some(32) | |
8 | } | |
9 | ||
10 | fn my_function() -> Option<i32> { | |
11 | other_function()?; | |
12 | //~^ ERROR: question mark operator was used | |
13 | None | |
14 | } | |
15 | ||
16 | fn main() {} |