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

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0308]: mismatched types
--> $DIR/issue-27042.rs:16:16
|
LL | loop { break }; //~ ERROR mismatched types
| ^^^^^ expected (), found i32
|
= note: expected type `()`
found type `i32`
error[E0308]: mismatched types
--> $DIR/issue-27042.rs:18:9
|
LL | / 'b: //~ ERROR mismatched types
LL | | while true { break }; // but here we cite the whole loop
| |____________________________^ expected i32, found ()
|
= note: expected type `i32`
found type `()`
error[E0308]: mismatched types
--> $DIR/issue-27042.rs:21:9
|
LL | / 'c: //~ ERROR mismatched types
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
--> $DIR/issue-27042.rs:24:9
|
LL | / 'd: //~ ERROR mismatched types
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`.