summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/fn-defined-using-func.stderr
blob: 355741e8949a9e98fd30c2d6bddba46a19eb5249 (plain)
1
2
3
4
5
6
7
8
9
10
error: expected one of `!` or `::`, found `foo`
  --> $DIR/fn-defined-using-func.rs:6:6
   |
LL | func foo() {}
   | ---- ^^^ expected one of `!` or `::`
   | |
   | help: write `fn` instead of `func` to declare a function

error: aborting due to previous error