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)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2020-08-09 01:19:57 -05:00
|
|
|
|