about summary refs log tree commit diff
path: root/tests/ui/parser/missing-fn-issue-65381-3.stderr
blob: 883295baede1ad6e9bcfe44ba372fc558258f2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: missing `fn` for function definition
  --> $DIR/missing-fn-issue-65381-3.rs:1:11
   |
LL | pub const initial_value() -> Self {
   |           ^^^^^^^^^^^^^
   |
help: add `fn` here to parse `initial_value` as a function
   |
LL | pub const fn initial_value() -> Self {
   |           ++

error: aborting due to 1 previous error