rust/tests/ui/parser/misspelled-keywords/pub-fn.stderr
mu001999 7077797f52 Parse and lower final for methods
Co-authored-by: Michael Goulet <michael@errs.io>
2026-02-12 15:12:29 +08:00

14 lines
464 B
Text

error: expected one of `#`, `async`, `auto`, `const`, `default`, `enum`, `extern`, `final`, `fn`, `gen`, `impl`, `macro_rules`, `macro`, `mod`, `pub`, `safe`, `static`, `struct`, `trait`, `type`, `unsafe`, or `use`, found `puB`
--> $DIR/pub-fn.rs:1:1
|
LL | puB fn code() {}
| ^^^ expected one of 22 possible tokens
|
help: write keyword `pub` in lowercase
|
LL - puB fn code() {}
LL + pub fn code() {}
|
error: aborting due to 1 previous error