]> git.proxmox.com Git - rustc.git/blame_incremental - src/tools/clippy/tests/ui/question_mark_used.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / src / tools / clippy / tests / ui / question_mark_used.rs
... / ...
CommitLineData
1// non rustfixable
2#![allow(unreachable_code)]
3#![allow(dead_code)]
4#![warn(clippy::question_mark_used)]
5
6fn other_function() -> Option<i32> {
7 Some(32)
8}
9
10fn my_function() -> Option<i32> {
11 other_function()?;
12 //~^ ERROR: question mark operator was used
13 None
14}
15
16fn main() {}