2020-08-09 06:19:57 +00:00
|
|
|
error: const parameter `x` should have an upper case name
|
2021-08-27 16:04:57 +00:00
|
|
|
--> $DIR/const-parameter-uppercase-lint.rs:3:15
|
2020-08-09 06:19:57 +00: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 16:04:57 +00:00
|
|
|
--> $DIR/const-parameter-uppercase-lint.rs:1:9
|
2020-08-09 06:19:57 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(non_upper_case_globals)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-08-09 06:19:57 +00:00
|
|
|
|