]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-87197-missing-semicolon.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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 }