summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.stderr
blob: 09dc3640f99a618121106fd91d24528ddaf56cce (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
error: structure field `lowerCamelCaseName` should have a snake case name
  --> $DIR/issue-66362-no-snake-case-warning-for-field-puns.rs:7:9
   |
LL |         lowerCamelCaseName: bool,
   |         ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `lower_camel_case_name`
   |
note: the lint level is defined here
  --> $DIR/issue-66362-no-snake-case-warning-for-field-puns.rs:1:9
   |
LL | #![deny(non_snake_case)]
   |         ^^^^^^^^^^^^^^

error: variable `lowerCamelCaseBinding` should have a snake case name
  --> $DIR/issue-66362-no-snake-case-warning-for-field-puns.rs:20:38
   |
LL |         Foo::Good { snake_case_name: lowerCamelCaseBinding } => { }
   |                                      ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `lower_camel_case_binding`

error: variable `anotherLowerCamelCaseBinding` should have a snake case name
  --> $DIR/issue-66362-no-snake-case-warning-for-field-puns.rs:24:41
   |
LL |     if let Foo::Good { snake_case_name: anotherLowerCamelCaseBinding } = b { }
   |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `another_lower_camel_case_binding`

error: variable `yetAnotherLowerCamelCaseBinding` should have a snake case name
  --> $DIR/issue-66362-no-snake-case-warning-for-field-puns.rs:27:43
   |
LL |     if let Foo::Bad { lowerCamelCaseName: yetAnotherLowerCamelCaseBinding } = b { }
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `yet_another_lower_camel_case_binding`

error: aborting due to 4 previous errors