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) -> () {
57
57
58
58
bb5 : {
59
59
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
61
61
goto -> bb0; // bb5[2] : scope 0 at $DIR/while-storage.rs:10:5: 14:6
62
62
}
63
63
@@ -74,7 +74,7 @@ fn while_loop(_1: bool) -> () {
74
74
}
75
75
76
76
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
78
78
return; // bb7[1] : scope 0 at $DIR/while-storage.rs:15:2: 15:2
79
79
}
80
80
}
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ LL | while true {
9
9
error[E0308]: mismatched types
10
10
--> $DIR/block-must-not-have-result-while.rs:3:9
11
11
|
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 `()`
14
20
15
21
error: aborting due to previous error; 1 warning emitted
16
22
You can’t perform that action at this time.
0 commit comments