rust/src/test/ui/break-while-condition.stderr
Vadim Petrochenkov fa72a81bea Update tests
2019-03-11 23:10:26 +03:00

38 lines
943 B
Plaintext

error[E0308]: mismatched types
--> $DIR/break-while-condition.rs:9:20
|
LL | let _: ! = {
| ____________________^
LL | | 'a: while break 'a {};
LL | | };
| |_________^ expected !, found ()
|
= note: expected type `!`
found type `()`
error[E0308]: mismatched types
--> $DIR/break-while-condition.rs:16:13
|
LL | / while false {
LL | | break
LL | | }
| |_____________^ expected !, found ()
|
= note: expected type `!`
found type `()`
error[E0308]: mismatched types
--> $DIR/break-while-condition.rs:24:13
|
LL | / while false {
LL | | return
LL | | }
| |_____________^ expected !, found ()
|
= note: expected type `!`
found type `()`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0308`.