]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/public-instead-of-pub.fixed
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / ui / parser / public-instead-of-pub.fixed
1 // Checks what happens when `public` is used instead of the correct, `pub`
2 // edition:2018
3 // run-rustfix
4 pub 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() {}