rust/tests/ui/const-generics/const-parameter-uppercase-lint.rs
2023-01-11 09:32:08 +00:00

8 lines
142 B
Rust

#![deny(non_upper_case_globals)]
fn noop<const x: u32>() {
//~^ ERROR const parameter `x` should have an upper case name
}
fn main() {}