rust/tests/ui/parser/issues/issue-87197-missing-semicolon.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
283 B
Rust
Raw Normal View History

2021-07-24 12:58:55 -05:00
// 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);
}