rust/src/test/ui/parser/issue-3036.rs

7 lines
162 B
Rust

// Testing that semicolon tokens are printed correctly in errors
fn main()
{
let x = 3
} //~ ERROR: expected one of `.`, `;`, `?`, or an operator, found `}`