diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-11-14 14:08:08 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-11-18 11:02:44 -0800 |
| commit | b2e6aef0731990c98a6fb7ac6f890aa359a5e9e6 (patch) | |
| tree | df1407f0fe6c3c53725fcf0f93a5ec293ca86247 /src/test/ui/try-block | |
| parent | 83ffda5216a9a4248221b980ee08c30ac6e517f8 (diff) | |
| download | rust-b2e6aef0731990c98a6fb7ac6f890aa359a5e9e6.tar.gz rust-b2e6aef0731990c98a6fb7ac6f890aa359a5e9e6.zip | |
review comments: tweak prefix strings
Diffstat (limited to 'src/test/ui/try-block')
| -rw-r--r-- | src/test/ui/try-block/try-block-bad-type.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/try-block/try-block-type-error.stderr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/try-block/try-block-bad-type.stderr b/src/test/ui/try-block/try-block-bad-type.stderr index ecef3b5353f..722b7a3b60a 100644 --- a/src/test/ui/try-block/try-block-bad-type.stderr +++ b/src/test/ui/try-block/try-block-bad-type.stderr @@ -28,8 +28,8 @@ error[E0271]: type mismatch resolving `<std::result::Result<i32, i32> as std::op LL | let res: Result<i32, i32> = try { }; | ^ expected i32, found () | - = note: expected type `i32` - found type `()` + = note: expected type `i32` + found unit type `()` error[E0277]: the trait bound `(): std::ops::Try` is not satisfied --> $DIR/try-block-bad-type.rs:17:23 diff --git a/src/test/ui/try-block/try-block-type-error.stderr b/src/test/ui/try-block/try-block-type-error.stderr index 0cbd737debd..0dd81d8e152 100644 --- a/src/test/ui/try-block/try-block-type-error.stderr +++ b/src/test/ui/try-block/try-block-type-error.stderr @@ -16,8 +16,8 @@ error[E0271]: type mismatch resolving `<std::option::Option<i32> as std::ops::Tr LL | }; | ^ expected i32, found () | - = note: expected type `i32` - found type `()` + = note: expected type `i32` + found unit type `()` error: aborting due to 2 previous errors |
