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

error: aborting due to previous error