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

#![deny(non_upper_case_globals)]

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

fn main() {}