]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/fn-defined-using-fun.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / parser / fn-defined-using-fun.rs
CommitLineData
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
6fun foo() {}
7//~^ ERROR expected one of `!` or `::`, found `foo`
8//~^^ HELP write `fn` instead of `fun` to declare a function
9
10fn main() {}