rust/tests/ui/parser/missing-fn-issue-65381-3.stderr

14 lines
336 B
Plaintext
Raw Permalink Normal View History

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