mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 13:57:24 +00:00
12 lines
274 B
Plaintext
12 lines
274 B
Plaintext
// Checks what happens when `public` is used instead of the correct, `pub`
|
|
// run-rustfix
|
|
|
|
pub enum Test {
|
|
//~^ ERROR expected one of `!` or `::`, found keyword `enum`
|
|
//~^^ HELP write `pub` instead of `public` to make the item public
|
|
A,
|
|
B,
|
|
}
|
|
|
|
fn main() { }
|