]>
Commit | Line | Data |
---|---|---|
9ffffee4 FG |
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()?; | |
781aab86 | 12 | //~^ ERROR: question mark operator was used |
9ffffee4 FG |
13 | None |
14 | } | |
15 | ||
16 | fn main() {} |