Sign in
rust
/
rust-clippy
/
9eb85122558fd7c3a8909939f9cbe4d0f15d73f3
/
.
/
tests
/
ui
/
question_mark_used.rs
blob: 9e204d1e9f3c2e651c185d92b54be86adbd19de8 [
file
] [
log
] [
blame
]
// 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
()
{}