rust-clippy/tests/ui/question_mark.stderr
2018-12-10 08:22:07 +01:00

20 lines
558 B
Text

error: this block may be rewritten with the `?` operator
--> $DIR/question_mark.rs:11:5
|
11 | / if a.is_none() {
12 | | return None;
13 | | }
| |_____^ help: replace_it_with: `a?;`
|
= note: `-D clippy::question-mark` implied by `-D warnings`
error: this block may be rewritten with the `?` operator
--> $DIR/question_mark.rs:46:9
|
46 | / if (self.opt).is_none() {
47 | | return None;
48 | | }
| |_________^ help: replace_it_with: `(self.opt)?;`
error: aborting due to 2 previous errors