diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-04-17 18:30:26 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-04-17 18:30:26 -0700 |
| commit | 007b40be01ca4e0eb0bca875e9134e4f87c9cd4b (patch) | |
| tree | 1b9271e4b2be42139d72913e5bed8ba2d3b18198 /src/test | |
| parent | 70f130954d6fd36fe3e77f4b5b33e5af50489288 (diff) | |
| download | rust-007b40be01ca4e0eb0bca875e9134e4f87c9cd4b.tar.gz rust-007b40be01ca4e0eb0bca875e9134e4f87c9cd4b.zip | |
Point at try `?` on errors affecting the err match arm of the desugared code
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/issues/issue-32709.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/try-block/try-block-bad-type.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/try-on-option.stderr | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/issues/issue-32709.stderr b/src/test/ui/issues/issue-32709.stderr index 9127c754658..4a37e0a2e52 100644 --- a/src/test/ui/issues/issue-32709.stderr +++ b/src/test/ui/issues/issue-32709.stderr @@ -1,8 +1,8 @@ error[E0277]: the trait bound `(): std::convert::From<{integer}>` is not satisfied - --> $DIR/issue-32709.rs:4:5 + --> $DIR/issue-32709.rs:4:11 | LL | Err(5)?; - | ^^^^^^^ the trait `std::convert::From<{integer}>` is not implemented for `()` + | ^ the trait `std::convert::From<{integer}>` is not implemented for `()` | = note: required by `std::convert::From::from` 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 07e7149793c..a39c8cfba12 100644 --- a/src/test/ui/try-block/try-block-bad-type.stderr +++ b/src/test/ui/try-block/try-block-bad-type.stderr @@ -1,8 +1,8 @@ error[E0277]: the trait bound `i32: std::convert::From<&str>` is not satisfied - --> $DIR/try-block-bad-type.rs:7:9 + --> $DIR/try-block-bad-type.rs:7:16 | LL | Err("")?; - | ^^^^^^^^ the trait `std::convert::From<&str>` is not implemented for `i32` + | ^ the trait `std::convert::From<&str>` is not implemented for `i32` | = help: the following implementations were found: <i32 as std::convert::From<bool>> diff --git a/src/test/ui/try-on-option.stderr b/src/test/ui/try-on-option.stderr index 7dfa1a7d3a0..3e081d03766 100644 --- a/src/test/ui/try-on-option.stderr +++ b/src/test/ui/try-on-option.stderr @@ -1,8 +1,8 @@ error[E0277]: the trait bound `(): std::convert::From<std::option::NoneError>` is not satisfied - --> $DIR/try-on-option.rs:7:5 + --> $DIR/try-on-option.rs:7:6 | LL | x?; - | ^^ the trait `std::convert::From<std::option::NoneError>` is not implemented for `()` + | ^ the trait `std::convert::From<std::option::NoneError>` is not implemented for `()` | = note: required by `std::convert::From::from` |
