summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
blob: b08d62ccc7b1642b9b5a4550cb8b32ff1f755e36 (plain)
1
2
3
4
5
6
7
#![deny(non_upper_case_globals)]

fn noop<const x: u32>() {
    //~^ ERROR const parameter `x` should have an upper case name
}

fn main() {}