Files
rust/tests/ui/question_mark_used.rs
T
Guillaume Gomez f666fd6417 Update UI tests
2025-02-15 13:38:16 +01:00

18 lines
270 B
Rust

// 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()?;
//~^ question_mark_used
None
}
fn main() {}