2023-05-27 13:16:55 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-04-19 10:54:41 -05:00
|
|
|
--> $DIR/dont-suggest-break-thru-item.rs:7:17
|
2023-05-27 13:16:55 -05:00
|
|
|
|
|
|
|
|
LL | / if true {
|
|
|
|
LL | | Err(1)
|
|
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
|
|
LL | |
|
2024-02-05 21:30:16 -06:00
|
|
|
LL | |
|
2023-05-27 13:16:55 -05:00
|
|
|
LL | | }
|
|
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
|
|
|
found enum `Result<_, {integer}>`
|
2024-02-05 21:30:16 -06:00
|
|
|
help: you might have meant to return this value
|
|
|
|
|
|
|
|
|
LL | return Err(1);
|
|
|
|
| ++++++ +
|
2023-05-27 13:16:55 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-19 10:54:41 -05:00
|
|
|
--> $DIR/dont-suggest-break-thru-item.rs:21:17
|
2023-05-27 13:16:55 -05:00
|
|
|
|
|
|
|
|
LL | / if true {
|
|
|
|
LL | | Err(1)
|
|
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
|
|
LL | |
|
2024-02-05 21:30:16 -06:00
|
|
|
LL | |
|
2023-05-27 13:16:55 -05:00
|
|
|
LL | | }
|
|
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
|
|
|
found enum `Result<_, {integer}>`
|
2024-02-05 21:30:16 -06:00
|
|
|
help: you might have meant to return this value
|
|
|
|
|
|
|
|
|
LL | return Err(1);
|
|
|
|
| ++++++ +
|
2023-05-27 13:16:55 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-19 10:54:41 -05:00
|
|
|
--> $DIR/dont-suggest-break-thru-item.rs:35:17
|
2023-05-27 13:16:55 -05:00
|
|
|
|
|
|
|
|
LL | / if true {
|
|
|
|
LL | | Err(1)
|
|
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
|
|
|
found enum `Result<_, {integer}>`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-19 10:54:41 -05:00
|
|
|
--> $DIR/dont-suggest-break-thru-item.rs:47:17
|
2023-05-27 13:16:55 -05:00
|
|
|
|
|
|
|
|
LL | / if true {
|
|
|
|
LL | | Err(1)
|
|
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
|
|
|
found enum `Result<_, {integer}>`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|