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