]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/public-instead-of-pub.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / parser / public-instead-of-pub.rs
1 // Checks what happens when `public` is used instead of the correct, `pub`
2 // edition:2018
3 // run-rustfix
4 public struct X;
5 //~^ ERROR expected one of `!` or `::`, found keyword `struct`
6 //~^^ HELP write `pub` instead of `public` to make the item public
7
8 fn main() {}