]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-87197-missing-semicolon.stderr
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-87197-missing-semicolon.stderr
1 error: expected `;`, found `println`
2   --> $DIR/issue-87197-missing-semicolon.rs:6:16
3    |
4 LL |     let x = 100
5    |                ^ help: add `;` here
6 LL |     println!("{}", x)
7    |     ------- unexpected token
8
9 error: expected `;`, found keyword `let`
10   --> $DIR/issue-87197-missing-semicolon.rs:7:22
11    |
12 LL |     println!("{}", x)
13    |                      ^ help: add `;` here
14 LL |     let y = 200
15    |     --- unexpected token
16
17 error: expected `;`, found `println`
18   --> $DIR/issue-87197-missing-semicolon.rs:8:16
19    |
20 LL |     let y = 200
21    |                ^ help: add `;` here
22 LL |     println!("{}", y);
23    |     ------- unexpected token
24
25 error: aborting due to 3 previous errors
26