about summary refs log tree commit diff
path: root/tests/ui/parser/issues/fn-no-semicolon-issue-124935-semi-after-item.rs
blob: c9fb08506ddbd18ad7b7f758b7e6320d2fdd0b71 (plain)
1
2
3
4
5
6
7
// 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() { }