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