Skip to content

Commit

Permalink
--bless the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed May 25, 2018
1 parent 03d816f commit d5bf4de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/test/ui/break-while-condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ fn main() {
}

if false {
let _: ! = { //~ ERROR mismatched types
while false {
let _: ! = {
while false { //~ ERROR mismatched types
break
}
};
}

if false {
let _: ! = { //~ ERROR mismatched types
while false {
let _: ! = {
while false { //~ ERROR mismatched types
return
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/break-while-condition.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ error[E0308]: mismatched types
LL | fn main() {
| - expected `()` because of default return type
...
LL | / while false {
LL | / while false { //~ ERROR mismatched types
LL | | break
LL | | }
| |_____________^ expected !, found ()
Expand All @@ -30,7 +30,7 @@ error[E0308]: mismatched types
LL | fn main() {
| - expected `()` because of default return type
...
LL | / while false {
LL | / while false { //~ ERROR mismatched types
LL | | return
LL | | }
| |_____________^ expected !, found ()
Expand Down

0 comments on commit d5bf4de

Please sign in to comment.