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