summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-92481.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/typeck/issue-92481.rs')
-rw-r--r--tests/ui/typeck/issue-92481.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/ui/typeck/issue-92481.rs b/tests/ui/typeck/issue-92481.rs
index 0a6b1843d..f752400bb 100644
--- a/tests/ui/typeck/issue-92481.rs
+++ b/tests/ui/typeck/issue-92481.rs
@@ -2,13 +2,8 @@
#![crate_type="lib"]
-fn r({) {
- Ok { //~ ERROR mismatched types [E0308]
+fn r({) { //~ ERROR mismatched closing delimiter
+ Ok {
d..||_=m
}
}
-//~^^^^^ ERROR expected parameter name, found `{`
-//~| ERROR expected one of `,`, `:`, or `}`, found `..`
-//~^^^^^ ERROR cannot find value `d` in this scope [E0425]
-//~| ERROR cannot find value `m` in this scope [E0425]
-//~| ERROR variant `Result<_, _>::Ok` has no field named `d` [E0559]