rust/tests/ui/parser/issues/fn-no-semicolon-issue-124935-semi-after-item.rs
2024-07-12 03:02:57 +00:00

8 lines
202 B
Rust

// Regression test for issue #124935
// Tests that we do not erroneously emit an error about
// missing main function when the mod starts with a `;`
;
//~^ ERROR expected item, found `;`
fn main() { }