summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
blob: 54a33e2181284224e7a905f9f45657927e3435ae (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

#![deny(non_upper_case_globals)]

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

fn main() {}