diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2021-04-17 11:56:07 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2021-05-06 11:37:45 -0700 |
| commit | 4a7ceea930e0029bccb8f7bfcc70ef4ba3d550d8 (patch) | |
| tree | cdae36834d6ed2f24890b380fc4220ebd4031867 /src/test/ui/try-block/try-block-in-while.stderr | |
| parent | 47b99485a391e21caf3e0312969ed00ccbc6c167 (diff) | |
| download | rust-4a7ceea930e0029bccb8f7bfcc70ef4ba3d550d8.tar.gz rust-4a7ceea930e0029bccb8f7bfcc70ef4ba3d550d8.zip | |
Better rustc_on_unimplemented, and UI test fixes
Diffstat (limited to 'src/test/ui/try-block/try-block-in-while.stderr')
| -rw-r--r-- | src/test/ui/try-block/try-block-in-while.stderr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/try-block/try-block-in-while.stderr b/src/test/ui/try-block/try-block-in-while.stderr index 75a4e8d065c..c83351d5c43 100644 --- a/src/test/ui/try-block/try-block-in-while.stderr +++ b/src/test/ui/try-block/try-block-in-while.stderr @@ -1,10 +1,11 @@ -error[E0277]: the trait bound `bool: Try` is not satisfied +error[E0277]: a `try` block must return `Result` or `Option` (or another type that implements `Try`) --> $DIR/try-block-in-while.rs:6:17 | LL | while try { false } {} - | ^^^^^ the trait `Try` is not implemented for `bool` + | ^^^^^ could not wrap the final value of the block as `bool` doesn't implement `Try` | - = note: required by `from_ok` + = help: the trait `Try` is not implemented for `bool` + = note: required by `from_output` error: aborting due to previous error |
