about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-118530-ice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-118530-ice.stderr')
-rw-r--r--tests/ui/parser/issues/issue-118530-ice.stderr13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/ui/parser/issues/issue-118530-ice.stderr b/tests/ui/parser/issues/issue-118530-ice.stderr
index 75c6a40c744..a8a2327d0ce 100644
--- a/tests/ui/parser/issues/issue-118530-ice.stderr
+++ b/tests/ui/parser/issues/issue-118530-ice.stderr
@@ -30,16 +30,23 @@ LL |     #[feature]
    |     ---------- only `;` terminated statements or tail expressions are allowed after this attribute
 LL |     attr::fn bar() -> String {
    |             ^--- unexpected token
-   |             |
-   |             help: add `;` here
+   |
+help: add `;` here
+   |
+LL |     attr::fn; bar() -> String {
+   |             +
 
 error: `->` used for field access or method call
   --> $DIR/issue-118530-ice.rs:5:20
    |
 LL |     attr::fn bar() -> String {
-   |                    ^^ help: try using `.` instead
+   |                    ^^
    |
    = help: the `.` operator will dereference the value if needed
+help: try using `.` instead
+   |
+LL |     attr::fn bar() . String {
+   |                    ~
 
 error: expected one of `(`, `.`, `::`, `;`, `?`, `}`, or an operator, found `{`
   --> $DIR/issue-118530-ice.rs:5:30