mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
453 B
Plaintext
15 lines
453 B
Plaintext
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 1 previous error
|
|
|