]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-87197-missing-semicolon.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-87197-missing-semicolon.rs
1 // run-rustfix
2 // Parser should know when a semicolon is missing.
3 // https://github.com/rust-lang/rust/issues/87197
4
5 fn main() {
6     let x = 100 //~ ERROR: expected `;`
7     println!("{}", x) //~ ERROR: expected `;`
8     let y = 200 //~ ERROR: expected `;`
9     println!("{}", y);
10 }