Skip to content

Commit

Permalink
update_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Apr 23, 2020
1 parent 602f206 commit 898cbf2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn while_loop(_1: bool) -> () {

bb5: {
StorageDead(_4); // bb5[0]: scope 0 at $DIR/while-storage.rs:14:5: 14:6
StorageDead(_2); // bb5[1]: scope 0 at $DIR/while-storage.rs:10:21: 10:22
StorageDead(_2); // bb5[1]: scope 0 at $DIR/while-storage.rs:14:5: 14:6
goto -> bb0; // bb5[2]: scope 0 at $DIR/while-storage.rs:10:5: 14:6
}

Expand All @@ -74,7 +74,7 @@ fn while_loop(_1: bool) -> () {
}

bb7: {
StorageDead(_2); // bb7[0]: scope 0 at $DIR/while-storage.rs:10:21: 10:22
StorageDead(_2); // bb7[0]: scope 0 at $DIR/while-storage.rs:14:5: 14:6
return; // bb7[1]: scope 0 at $DIR/while-storage.rs:15:2: 15:2
}
}
10 changes: 8 additions & 2 deletions src/test/ui/block-result/block-must-not-have-result-while.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ LL | while true {
error[E0308]: mismatched types
--> $DIR/block-must-not-have-result-while.rs:3:9
|
LL | true
| ^^^^ expected `()`, found `bool`
LL | / while true {
LL | | true
| | ^^^^ expected `()`, found `bool`
LL | |
LL | | }
| | -- help: consider using a semicolon here
| |_____|
| expected this to be `()`

error: aborting due to previous error; 1 warning emitted

Expand Down

0 comments on commit 898cbf2

Please sign in to comment.