2020-08-09 01:19:57 -05:00
|
|
|
error: const parameter `x` should have an upper case name
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/const-parameter-uppercase-lint.rs:3:15
|
2020-08-09 01:19:57 -05:00
|
|
|
|
|
|
|
|
LL | fn noop<const x: u32>() {
|
|
|
|
| ^ help: convert the identifier to upper case (notice the capitalization): `X`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/const-parameter-uppercase-lint.rs:1:9
|
2020-08-09 01:19:57 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(non_upper_case_globals)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|