about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-87197-missing-semicolon.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-87197-missing-semicolon.stderr')
-rw-r--r--tests/ui/parser/issues/issue-87197-missing-semicolon.stderr21
1 files changed, 18 insertions, 3 deletions
diff --git a/tests/ui/parser/issues/issue-87197-missing-semicolon.stderr b/tests/ui/parser/issues/issue-87197-missing-semicolon.stderr
index 57772de1e7a..874e7b07163 100644
--- a/tests/ui/parser/issues/issue-87197-missing-semicolon.stderr
+++ b/tests/ui/parser/issues/issue-87197-missing-semicolon.stderr
@@ -2,25 +2,40 @@ error: expected `;`, found `println`
   --> $DIR/issue-87197-missing-semicolon.rs:6:16
    |
 LL |     let x = 100
-   |                ^ help: add `;` here
+   |                ^
 LL |     println!("{}", x)
    |     ------- unexpected token
+   |
+help: add `;` here
+   |
+LL |     let x = 100;
+   |                +
 
 error: expected `;`, found keyword `let`
   --> $DIR/issue-87197-missing-semicolon.rs:7:22
    |
 LL |     println!("{}", x)
-   |                      ^ help: add `;` here
+   |                      ^
 LL |     let y = 200
    |     --- unexpected token
+   |
+help: add `;` here
+   |
+LL |     println!("{}", x);
+   |                      +
 
 error: expected `;`, found `println`
   --> $DIR/issue-87197-missing-semicolon.rs:8:16
    |
 LL |     let y = 200
-   |                ^ help: add `;` here
+   |                ^
 LL |     println!("{}", y);
    |     ------- unexpected token
+   |
+help: add `;` here
+   |
+LL |     let y = 200;
+   |                +
 
 error: aborting due to 3 previous errors