rust/tests/ui/try-block/try-block-in-while.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
451 B
Plaintext
Raw Normal View History

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