summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-assoc-eq-missing-term.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/recover-assoc-eq-missing-term.stderr')
-rw-r--r--tests/ui/parser/recover-assoc-eq-missing-term.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/parser/recover-assoc-eq-missing-term.stderr b/tests/ui/parser/recover-assoc-eq-missing-term.stderr
new file mode 100644
index 000000000..152f7f2fb
--- /dev/null
+++ b/tests/ui/parser/recover-assoc-eq-missing-term.stderr
@@ -0,0 +1,18 @@
+error: missing type to the right of `=`
+ --> $DIR/recover-assoc-eq-missing-term.rs:3:17
+ |
+LL | bar::<Item = >();
+ | ^^^
+ |
+help: to constrain the associated type, add a type after `=`
+ |
+LL | bar::<Item = TheType>();
+ | +++++++
+help: remove the `=` if `Item` is a type
+ |
+LL - bar::<Item = >();
+LL + bar::<Item >();
+ |
+
+error: aborting due to previous error
+