mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
14 lines
336 B
Plaintext
14 lines
336 B
Plaintext
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
|
|
|