]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-parameter-uppercase-lint.rs
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / ui / const-generics / const-parameter-uppercase-lint.rs
1 // revisions: full min
2
3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
5
6 #![deny(non_upper_case_globals)]
7
8 fn noop<const x: u32>() {
9     //~^ ERROR const parameter `x` should have an upper case name
10 }
11
12 fn main() {}