summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-87197-missing-semicolon.stderr
blob: 57772de1e7a4bc3324fe55c4753ec57be01f357e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error: expected `;`, found `println`
  --> $DIR/issue-87197-missing-semicolon.rs:6:16
   |
LL |     let x = 100
   |                ^ help: add `;` here
LL |     println!("{}", x)
   |     ------- unexpected token

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

error: expected `;`, found `println`
  --> $DIR/issue-87197-missing-semicolon.rs:8:16
   |
LL |     let y = 200
   |                ^ help: add `;` here
LL |     println!("{}", y);
   |     ------- unexpected token

error: aborting due to 3 previous errors