Description
The following code should trigger needless_return_with_question_mark. Noticed while reviewing #16952.
fn expr_after_stmt() -> Result<(), ()> {
return Err(())?;
//~^ needless_return_with_question_mark
Ok(())
}
@rustbot label +I-false-negative +C-bug
@rustbot claim
Version
Additional Labels
No response
Description
The following code should trigger
needless_return_with_question_mark. Noticed while reviewing #16952.@rustbot label +I-false-negative +C-bug
@rustbot claim
Version
Additional Labels
No response