blob: 9dd90798d9261bae51cb6564348cc3b85d4c7469 (
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 1 previous error
|