summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-92481.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:50 +0000
commit2e00214b3efbdfeefaa0fe9e8b8fd519de7adc35 (patch)
treed325add32978dbdc1db975a438b3a77d571b1ab8 /tests/ui/typeck/issue-92481.stderr
parentReleasing progress-linux version 1.68.2+dfsg1-1~progress7.99u1. (diff)
downloadrustc-2e00214b3efbdfeefaa0fe9e8b8fd519de7adc35.tar.xz
rustc-2e00214b3efbdfeefaa0fe9e8b8fd519de7adc35.zip
Merging upstream version 1.69.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/typeck/issue-92481.stderr')
-rw-r--r--tests/ui/typeck/issue-92481.stderr61
1 files changed, 6 insertions, 55 deletions
diff --git a/tests/ui/typeck/issue-92481.stderr b/tests/ui/typeck/issue-92481.stderr
index cd778a649..d87d3277d 100644
--- a/tests/ui/typeck/issue-92481.stderr
+++ b/tests/ui/typeck/issue-92481.stderr
@@ -1,60 +1,11 @@
-error: expected parameter name, found `{`
+error: mismatched closing delimiter: `)`
--> $DIR/issue-92481.rs:5:6
|
LL | fn r({) {
- | ^ expected parameter name
+ | -^^ mismatched closing delimiter
+ | ||
+ | |unclosed delimiter
+ | closing delimiter possibly meant for this
-error: expected one of `,`, `:`, or `}`, found `..`
- --> $DIR/issue-92481.rs:5:6
- |
-LL | fn r({) {
- | ^ unclosed delimiter
-LL | Ok {
-LL | d..||_=m
- | -^
- | |
- | help: `}` may belong here
-
-error[E0425]: cannot find value `d` in this scope
- --> $DIR/issue-92481.rs:7:9
- |
-LL | d..||_=m
- | ^ not found in this scope
-
-error[E0425]: cannot find value `m` in this scope
- --> $DIR/issue-92481.rs:7:16
- |
-LL | d..||_=m
- | ^ not found in this scope
-
-error[E0559]: variant `Result<_, _>::Ok` has no field named `d`
- --> $DIR/issue-92481.rs:7:9
- |
-LL | d..||_=m
- | ^ field does not exist
- --> $SRC_DIR/core/src/result.rs:LL:COL
- |
- = note: `Result<_, _>::Ok` defined here
- |
-help: `Result<_, _>::Ok` is a tuple variant, use the appropriate syntax
- |
-LL | Result<_, _>::Ok(/* fields */)
- |
-
-error[E0308]: mismatched types
- --> $DIR/issue-92481.rs:6:5
- |
-LL | fn r({) {
- | - help: a return type might be missing here: `-> _`
-LL | / Ok {
-LL | | d..||_=m
-LL | | }
- | |_____^ expected `()`, found enum `Result`
- |
- = note: expected unit type `()`
- found enum `Result<_, _>`
-
-error: aborting due to 6 previous errors
+error: aborting due to previous error
-Some errors have detailed explanations: E0308, E0425, E0559.
-For more information about an error, try `rustc --explain E0308`.