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