File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ fn main() {
22
22
}
23
23
24
24
if false {
25
- let _: ! = { //~ ERROR mismatched types
26
- while false {
25
+ let _: ! = {
26
+ while false { //~ ERROR mismatched types
27
27
break
28
28
}
29
29
} ;
30
30
}
31
31
32
32
if false {
33
- let _: ! = { //~ ERROR mismatched types
34
- while false {
33
+ let _: ! = {
34
+ while false { //~ ERROR mismatched types
35
35
return
36
36
}
37
37
} ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ error[E0308]: mismatched types
16
16
LL | fn main() {
17
17
| - expected `()` because of default return type
18
18
...
19
- LL | / while false {
19
+ LL | / while false { //~ ERROR mismatched types
20
20
LL | | break
21
21
LL | | }
22
22
| |_____________^ expected !, found ()
@@ -30,7 +30,7 @@ error[E0308]: mismatched types
30
30
LL | fn main() {
31
31
| - expected `()` because of default return type
32
32
...
33
- LL | / while false {
33
+ LL | / while false { //~ ERROR mismatched types
34
34
LL | | return
35
35
LL | | }
36
36
| |_____________^ expected !, found ()
You can’t perform that action at this time.
0 commit comments