]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-parameter-uppercase-lint.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / const-parameter-uppercase-lint.stderr
1 error: const parameter `x` should have an upper case name
2   --> $DIR/const-parameter-uppercase-lint.rs:3:15
3    |
4 LL | fn noop<const x: u32>() {
5    |               ^ help: convert the identifier to upper case (notice the capitalization): `X`
6    |
7 note: the lint level is defined here
8   --> $DIR/const-parameter-uppercase-lint.rs:1:9
9    |
10 LL | #![deny(non_upper_case_globals)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14