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