summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/pat-lt-bracket-4.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/pat-lt-bracket-4.stderr')
-rw-r--r--tests/ui/parser/pat-lt-bracket-4.stderr11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/ui/parser/pat-lt-bracket-4.stderr b/tests/ui/parser/pat-lt-bracket-4.stderr
index 911c276b9..92d16564a 100644
--- a/tests/ui/parser/pat-lt-bracket-4.stderr
+++ b/tests/ui/parser/pat-lt-bracket-4.stderr
@@ -1,8 +1,13 @@
-error: expected one of `=>`, `@`, `if`, or `|`, found `<`
+error: generic args in patterns require the turbofish syntax
--> $DIR/pat-lt-bracket-4.rs:8:12
|
LL | Foo<T>::A(value) => value,
- | ^ expected one of `=>`, `@`, `if`, or `|`
+ | ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | Foo::<T>::A(value) => value,
+ | ++
-error: aborting due to previous error
+error: aborting due to 1 previous error