summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/removed-syntax-closure-lifetime.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/removed-syntax-closure-lifetime.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/removed-syntax-closure-lifetime.stderr b/src/test/ui/parser/removed-syntax-closure-lifetime.stderr
new file mode 100644
index 000000000..e107c6b78
--- /dev/null
+++ b/src/test/ui/parser/removed-syntax-closure-lifetime.stderr
@@ -0,0 +1,13 @@
+error: expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, `=`, or `>`, found `/`
+ --> $DIR/removed-syntax-closure-lifetime.rs:1:22
+ |
+LL | type closure = Box<lt/fn()>;
+ | ^ expected one of 9 possible tokens
+ |
+help: you might have meant to end the type parameters here
+ |
+LL | type closure = Box<lt>/fn()>;
+ | +
+
+error: aborting due to previous error
+