about summary refs log tree commit diff
path: root/tests/ui/try-block
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-09-10 03:33:07 +0000
committerMichael Goulet <michael@errs.io>2023-10-02 23:14:29 +0000
commit07851679cd8ced5933095c4173d3877c1abc96dd (patch)
tree3ed129e5c177f5d1d9df0874ef8f20c67a7b43e2 /tests/ui/try-block
parent8be12f4ed70c55652fefdec63d094974d00e164c (diff)
downloadrust-07851679cd8ced5933095c4173d3877c1abc96dd.tar.gz
rust-07851679cd8ced5933095c4173d3877c1abc96dd.zip
Point out the actual mismatch error
Diffstat (limited to 'tests/ui/try-block')
-rw-r--r--tests/ui/try-block/try-block-bad-type.stderr1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/try-block/try-block-bad-type.stderr b/tests/ui/try-block/try-block-bad-type.stderr
index e11c3f81003..b41bf86d3d9 100644
--- a/tests/ui/try-block/try-block-bad-type.stderr
+++ b/tests/ui/try-block/try-block-bad-type.stderr
@@ -6,6 +6,7 @@ LL |         Err("")?;
    |
    = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
    = help: the trait `From<Infallible>` is implemented for `TryFromSliceError`
+   = help: for that trait implementation, expected `Infallible`, found `&str`
    = note: required for `Result<u32, TryFromSliceError>` to implement `FromResidual<Result<Infallible, &str>>`
 
 error[E0271]: type mismatch resolving `<Result<i32, i32> as Try>::Output == &str`