about summary refs log tree commit diff
path: root/src/test/ui/inference
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-05-24 09:57:14 +0200
committerlcnr <rust@lcnr.de>2022-06-02 10:19:15 +0200
commitbc0d12cc6ccf5c6d8d9c44e67871a5b75f5a44cf (patch)
treef1d421f2791ec6836744b1ed2c34ebdb3a964faa /src/test/ui/inference
parent3fe346e7a3776d01541fc973c4a7bb686ef3b1a8 (diff)
downloadrust-bc0d12cc6ccf5c6d8d9c44e67871a5b75f5a44cf.tar.gz
rust-bc0d12cc6ccf5c6d8d9c44e67871a5b75f5a44cf.zip
use verbose suggestions
Diffstat (limited to 'src/test/ui/inference')
-rw-r--r--src/test/ui/inference/cannot-infer-partial-try-return.stderr9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/ui/inference/cannot-infer-partial-try-return.stderr b/src/test/ui/inference/cannot-infer-partial-try-return.stderr
index 3956b1a18de..220602c124c 100644
--- a/src/test/ui/inference/cannot-infer-partial-try-return.stderr
+++ b/src/test/ui/inference/cannot-infer-partial-try-return.stderr
@@ -2,9 +2,12 @@ error[E0282]: type annotations needed for `Result<(), QualifiedError<_>>`
   --> $DIR/cannot-infer-partial-try-return.rs:18:13
    |
 LL |     let x = || -> Result<_, QualifiedError<_>> {
-   |             ^^^^^^----------------------------
-   |                   |
-   |                   help: try giving this closure an explicit return type: `Result<(), QualifiedError<_>>`
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+help: try giving this closure an explicit return type
+   |
+LL |     let x = || -> Result<(), QualifiedError<_>> {
+   |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 error: aborting due to previous error