mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 22:37:08 +00:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
warning: constant `my_static` should have an upper case name
|
|
--> $DIR/lint-non-uppercase-usages.rs:11:7
|
|
|
|
|
LL | const my_static: u32 = 0;
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
|
|
help: convert the identifier to upper case
|
|
|
|
|
LL - const my_static: u32 = 0;
|
|
LL + const MY_STATIC: u32 = 0;
|
|
|
|
|
|
|
warning: constant `fooFOO` should have an upper case name
|
|
--> $DIR/lint-non-uppercase-usages.rs:24:12
|
|
|
|
|
LL | static fooFOO: Cell<usize> = unreachable!();
|
|
| ^^^^^^
|
|
|
|
|
help: convert the identifier to upper case
|
|
|
|
|
LL - static fooFOO: Cell<usize> = unreachable!();
|
|
LL + static FOO_FOO: Cell<usize> = unreachable!();
|
|
|
|
|
|
|
warning: const parameter `foo` should have an upper case name
|
|
--> $DIR/lint-non-uppercase-usages.rs:29:14
|
|
|
|
|
LL | fn foo<const foo: u32>() {
|
|
| ^^^
|
|
|
|
|
help: convert the identifier to upper case (notice the capitalization)
|
|
|
|
|
LL - fn foo<const foo: u32>() {
|
|
LL + fn foo<const FOO: u32>() {
|
|
|
|
|
|
|
warning: 3 warnings emitted
|
|
|