]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/public-instead-of-pub-1.rs
Rollup merge of #107553 - edward-shen:edward-shen/suggest-null-ptr, r=WaffleLapkin
[rust.git] / tests / ui / parser / public-instead-of-pub-1.rs
1 // Checks what happens when `public` is used instead of the correct, `pub`
2 // run-rustfix
3
4 public enum Test {
5     //~^ ERROR expected one of `!` or `::`, found keyword `enum`
6     //~^^ HELP write `pub` instead of `public` to make the item public
7     A,
8     B,
9 }
10
11 fn main() { }