summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-parameter-uppercase-lint.stderr
blob: efaa182852acadb9aa1e7b131c3baa9d3c3ee62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: const parameter `x` should have an upper case name
  --> $DIR/const-parameter-uppercase-lint.rs:3:15
   |
LL | fn noop<const x: u32>() {
   |               ^ help: convert the identifier to upper case (notice the capitalization): `X`
   |
note: the lint level is defined here
  --> $DIR/const-parameter-uppercase-lint.rs:1:9
   |
LL | #![deny(non_upper_case_globals)]
   |         ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error