summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-87197-missing-semicolon.rs
blob: db0edf4529c77c8a94d670562ea3beca13fbec77 (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix
// Parser should know when a semicolon is missing.
// https://github.com/rust-lang/rust/issues/87197

fn main() {
    let x = 100 //~ ERROR: expected `;`
    println!("{}", x) //~ ERROR: expected `;`
    let y = 200 //~ ERROR: expected `;`
    println!("{}", y);
}