summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
blob: 37fe9af98b3df4a6f39f5304912d375f86a759fa (plain)
1
2
3
4
5
6
7
8
#![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 generics in any position are currently unsupported
}