2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2021-07-24 10:58:55 -07:00
|
|
|
// 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);
|
|
|
|
|
}
|