]>
Commit | Line | Data |
---|---|---|
94b46f34 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/break-while-condition.rs:9:20 |
94b46f34 | 3 | | |
532ac7d7 | 4 | LL | let _: ! = { |
94b46f34 XL |
5 | | ____________________^ |
6 | LL | | 'a: while break 'a {}; | |
7 | LL | | }; | |
60c5eb7d | 8 | | |_________^ expected `!`, found `()` |
94b46f34 | 9 | | |
60c5eb7d XL |
10 | = note: expected type `!` |
11 | found unit type `()` | |
94b46f34 XL |
12 | |
13 | error[E0308]: mismatched types | |
0731742a | 14 | --> $DIR/break-while-condition.rs:16:13 |
94b46f34 | 15 | | |
532ac7d7 | 16 | LL | / while false { |
94b46f34 XL |
17 | LL | | break |
18 | LL | | } | |
60c5eb7d | 19 | | |_____________^ expected `!`, found `()` |
94b46f34 | 20 | | |
60c5eb7d XL |
21 | = note: expected type `!` |
22 | found unit type `()` | |
94b46f34 XL |
23 | |
24 | error[E0308]: mismatched types | |
0731742a | 25 | --> $DIR/break-while-condition.rs:24:13 |
94b46f34 | 26 | | |
532ac7d7 | 27 | LL | / while false { |
94b46f34 XL |
28 | LL | | return |
29 | LL | | } | |
60c5eb7d | 30 | | |_____________^ expected `!`, found `()` |
94b46f34 | 31 | | |
60c5eb7d XL |
32 | = note: expected type `!` |
33 | found unit type `()` | |
94b46f34 XL |
34 | |
35 | error: aborting due to 3 previous errors | |
36 | ||
37 | For more information about this error, try `rustc --explain E0308`. |