summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs
blob: 50520971ffb32bb6f68cb62c53917b96f33a5ff7 (plain)
1
2
3
4
5
6
7
8
// run-rustfix

fn main() {
    const let _FOO: i32 = 123;
    //~^ ERROR const` and `let` are mutually exclusive
    let const _BAR: i32 = 123;
    //~^ ERROR `const` and `let` are mutually exclusive
}