]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/public-instead-of-pub-2.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / parser / public-instead-of-pub-2.rs
1 // Checks what happens when `public` is used instead of the correct, `pub`
2 // Won't give help message for this case
3
4 public let x = 1;
5 //~^ ERROR expected one of `!` or `::`, found keyword `let`
6
7 fn main() { }