2023-02-13 13:50:08 -06:00
|
|
|
// 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()?;
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: question mark operator was used
|
2023-02-13 13:50:08 -06:00
|
|
|
None
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|