]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/public-instead-of-pub-3.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / parser / public-instead-of-pub-3.rs
1 // run-rustfix
2 mod test {
3     public const X: i32 = 123;
4     //~^ ERROR expected one of `!` or `::`, found keyword `const`
5 }
6
7 fn main() {
8     println!("{}", test::X);
9 }