]> git.proxmox.com Git - rustc.git/blob - src/test/ui/break-while-condition.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / break-while-condition.stderr
1 error[E0308]: mismatched types
2 --> $DIR/break-while-condition.rs:9:20
3 |
4 LL | let _: ! = {
5 | ____________________^
6 LL | | 'a: while break 'a {};
7 LL | | };
8 | |_________^ expected !, found ()
9 |
10 = note: expected type `!`
11 found type `()`
12
13 error[E0308]: mismatched types
14 --> $DIR/break-while-condition.rs:16:13
15 |
16 LL | / while false {
17 LL | | break
18 LL | | }
19 | |_____________^ expected !, found ()
20 |
21 = note: expected type `!`
22 found type `()`
23
24 error[E0308]: mismatched types
25 --> $DIR/break-while-condition.rs:24:13
26 |
27 LL | / while false {
28 LL | | return
29 LL | | }
30 | |_____________^ expected !, found ()
31 |
32 = note: expected type `!`
33 found type `()`
34
35 error: aborting due to 3 previous errors
36
37 For more information about this error, try `rustc --explain E0308`.