f2b60f7d FG |
1 | // Check what happens when `fun` is used to define a function, instead of `fn` |
2 | // edition:2021 |
3 | |
4 | #![allow(dead_code)] |
5 | |
6 | fun foo() {} |
7 | //~^ ERROR expected one of `!` or `::`, found `foo` |
8 | //~^^ HELP write `fn` instead of `fun` to declare a function |
9 | |
10 | fn main() {} |