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