]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/public-instead-of-pub-1.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[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() { }