]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs
Rollup merge of #107455 - tshepang:better-name, r=wesleywiser
[rust.git] / tests / ui / parser / issue-99910-const-let-mutually-exclusive.rs
1 // run-rustfix
2
3 fn main() {
4     const let _FOO: i32 = 123;
5     //~^ ERROR const` and `let` are mutually exclusive
6     let const _BAR: i32 = 123;
7     //~^ ERROR `const` and `let` are mutually exclusive
8 }