]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/public-instead-of-pub-3.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / public-instead-of-pub-3.stderr
1 error: expected one of `!` or `::`, found keyword `const`
2   --> $DIR/public-instead-of-pub-3.rs:3:12
3    |
4 LL |     public const X: i32 = 123;
5    |            ^^^^^ expected one of `!` or `::`
6    |
7 help: write `pub` instead of `public` to make the item public
8    |
9 LL |     pub const X: i32 = 123;
10    |     ~~~
11
12 error: aborting due to previous error
13