rust/src/test/ui/issues/issue-27042.stderr

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27042.rs:6:16
2018-07-15 16:11:54 -05:00
|
2019-03-09 06:03:44 -06:00
LL | loop { break };
2018-07-15 16:11:54 -05:00
| ^^^^^ expected (), found i32
|
= note: expected type `()`
found type `i32`
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27042.rs:8:9
2018-07-15 16:11:54 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / 'b:
2018-07-15 16:11:54 -05:00
LL | | while true { break }; // but here we cite the whole loop
| |____________________________^ expected i32, found ()
|
= note: expected type `i32`
found type `()`
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27042.rs:11:9
2018-07-15 16:11:54 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / 'c:
2018-07-15 16:11:54 -05:00
LL | | for _ in None { break }; // but here we cite the whole loop
| |_______________________________^ expected i32, found ()
|
= note: expected type `i32`
found type `()`
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27042.rs:14:9
2018-07-15 16:11:54 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / 'd:
2018-07-15 16:11:54 -05:00
LL | | while let Some(_) = None { break };
| |__________________________________________^ expected i32, found ()
|
= note: expected type `i32`
found type `()`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0308`.