blob: 17aa212ae8d7a3b68191f773cd910a5de88b605e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
error: unneeded `return` statement with `?` operator
--> $DIR/needless_return_with_question_mark.rs:29:5
|
LL | return Err(())?;
| ^^^^^^^ help: remove it
|
= note: `-D clippy::needless-return-with-question-mark` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return_with_question_mark)]`
error: unneeded `return` statement with `?` operator
--> $DIR/needless_return_with_question_mark.rs:69:9
|
LL | return Err(())?;
| ^^^^^^^ help: remove it
error: aborting due to 2 previous errors
|