1 error: this block may be rewritten with the `?` operator
2 --> $DIR/question_mark.rs:2:5
4 LL | / if a.is_none() {
7 | |_____^ help: replace_it_with: `a?;`
9 = note: `-D clippy::question-mark` implied by `-D warnings`
11 error: this block may be rewritten with the `?` operator
12 --> $DIR/question_mark.rs:47:9
14 LL | / if (self.opt).is_none() {
17 | |_________^ help: replace_it_with: `(self.opt)?;`
19 error: this block may be rewritten with the `?` operator
20 --> $DIR/question_mark.rs:51:9
22 LL | / if self.opt.is_none() {
25 | |_________^ help: replace_it_with: `self.opt?;`
27 error: this block may be rewritten with the `?` operator
28 --> $DIR/question_mark.rs:55:17
30 LL | let _ = if self.opt.is_none() {
36 | |_________^ help: replace_it_with: `Some(self.opt?)`
38 error: this block may be rewritten with the `?` operator
39 --> $DIR/question_mark.rs:72:9
41 LL | / if self.opt.is_none() {
44 | |_________^ help: replace_it_with: `self.opt.as_ref()?;`
46 error: this block may be rewritten with the `?` operator
47 --> $DIR/question_mark.rs:80:9
49 LL | / if self.opt.is_none() {
52 | |_________^ help: replace_it_with: `self.opt.as_ref()?;`
54 error: this block may be rewritten with the `?` operator
55 --> $DIR/question_mark.rs:88:9
57 LL | / if self.opt.is_none() {
60 | |_________^ help: replace_it_with: `self.opt.as_ref()?;`
62 error: aborting due to 7 previous errors