about summary refs log tree commit diff
path: root/tests/ui/lint/lint-non-uppercase-usages.stderr
blob: b34be31216d3aa7f5abbdeb0165bcafc416e58cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)]` 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