summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-84148-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-84148-2.stderr')
-rw-r--r--tests/ui/parser/issues/issue-84148-2.stderr27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-84148-2.stderr b/tests/ui/parser/issues/issue-84148-2.stderr
new file mode 100644
index 000000000..71d543f9b
--- /dev/null
+++ b/tests/ui/parser/issues/issue-84148-2.stderr
@@ -0,0 +1,27 @@
+error: this file contains an unclosed delimiter
+ --> $DIR/issue-84148-2.rs:3:16
+ |
+LL | fn f(t:for<>t?
+ | - ^
+ | |
+ | unclosed delimiter
+
+error: invalid `?` in type
+ --> $DIR/issue-84148-2.rs:3:14
+ |
+LL | fn f(t:for<>t?
+ | ^ `?` is only allowed on expressions, not types
+ |
+help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
+ |
+LL | fn f(t:Option<for<>t>
+ | +++++++ ~
+
+error: expected one of `->`, `where`, or `{`, found `<eof>`
+ --> $DIR/issue-84148-2.rs:3:16
+ |
+LL | fn f(t:for<>t?
+ | ^ expected one of `->`, `where`, or `{`
+
+error: aborting due to 3 previous errors
+