This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ fn while_loop(_1: bool) -> () {
5757
5858 bb5 : {
5959 StorageDead(_4); // bb5[0] : scope 0 at $DIR/while-storage.rs:14:5: 14:6
60- StorageDead(_2); // bb5[1] : scope 0 at $DIR/while-storage.rs:10:21: 10:22
60+ StorageDead(_2); // bb5[1] : scope 0 at $DIR/while-storage.rs:14:5: 14:6
6161 goto -> bb0; // bb5[2] : scope 0 at $DIR/while-storage.rs:10:5: 14:6
6262 }
6363
@@ -74,7 +74,7 @@ fn while_loop(_1: bool) -> () {
7474 }
7575
7676 bb7 : {
77- StorageDead(_2); // bb7[0] : scope 0 at $DIR/while-storage.rs:10:21: 10:22
77+ StorageDead(_2); // bb7[0] : scope 0 at $DIR/while-storage.rs:14:5: 14:6
7878 return; // bb7[1] : scope 0 at $DIR/while-storage.rs:15:2: 15:2
7979 }
8080}
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ LL | while true {
99error[E0308]: mismatched types
1010 --> $DIR/block-must-not-have-result-while.rs:3:9
1111 |
12- LL | true
13- | ^^^^ expected `()`, found `bool`
12+ LL | / while true {
13+ LL | | true
14+ | | ^^^^ expected `()`, found `bool`
15+ LL | |
16+ LL | | }
17+ | | -- help: consider using a semicolon here
18+ | |_____|
19+ | expected this to be `()`
1420
1521error: aborting due to previous error; 1 warning emitted
1622
You can’t perform that action at this time.
0 commit comments