about summary refs log tree commit diff
path: root/tests/ui/parser/missing-fn-issue-125446.rs
blob: 73c9c3a60e1fb9967d448db4dd73205e538defc9 (plain)
1
2
3
4
5
6
7
whoops() {}
//~^ ERROR missing `fn` for function definition
//~| HELP add `fn` here to parse `whoops` as a function

fn main() {
    whoops();
}