2021-04-17 18:56:07 +00:00
|
|
|
error[E0277]: a `try` block must return `Result` or `Option` (or another type that implements `Try`)
|
2020-09-07 09:01:45 +00:00
|
|
|
--> $DIR/try-block-in-while.rs:6:17
|
2018-08-13 03:05:29 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | while try { false } {}
|
2021-04-17 18:56:07 +00:00
|
|
|
| ^^^^^ could not wrap the final value of the block as `bool` doesn't implement `Try`
|
2020-04-14 15:45:00 +00:00
|
|
|
|
|
2021-04-17 18:56:07 +00:00
|
|
|
= help: the trait `Try` is not implemented for `bool`
|
2018-08-13 03:05:29 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-13 03:05:29 +00:00
|
|
|
|
2020-04-14 15:45:00 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|