Skip to content

Commit

Permalink
Update UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnieto committed Jan 30, 2018
1 parent 74ae9b1 commit 05ed421
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/ui/question_mark.stderr
@@ -0,0 +1,22 @@
error: this block may be rewritten with the `?` operator
--> $DIR/question_mark.rs:2:2
|
2 | if a.is_none() {
| _____^
3 | | return None
4 | | }
| |_____^ help: replace_it_with: `a?;`
|
= note: `-D question-mark` implied by `-D warnings`

error: this block may be rewritten with the `?` operator
--> $DIR/question_mark.rs:37:3
|
37 | if (self.opt).is_none() {
| _________^
38 | | return None;
39 | | }
| |_________^ help: replace_it_with: `(self.opt)?;`

error: aborting due to 2 previous errors

0 comments on commit 05ed421

Please sign in to comment.