]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-parameter-uppercase-lint.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[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() {}