rust/tests/ui/const-generics/const-parameter-uppercase-lint.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
142 B
Rust
Raw Normal View History

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