2021-10-21 11:11:36 +00:00
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:112:9
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | "Bar" => {},
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::match-str-case-mismatch` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::match_str_case_mismatch)]`
|
2021-10-21 11:11:36 +00:00
|
|
|
help: consider changing the case of this arm to respect `to_ascii_lowercase`
|
|
|
|
|
|
|
|
|
LL | "bar" => {},
|
|
|
|
| ~~~~~
|
|
|
|
|
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:122:9
|
2021-11-04 12:52:36 +00:00
|
|
|
|
|
|
|
|
LL | "~!@#$%^&*()-_=+Foo" => {},
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-02-14 19:18:28 +00:00
|
|
|
help: consider changing the case of this arm to respect `to_ascii_lowercase` (notice the capitalization difference)
|
2021-11-04 12:52:36 +00:00
|
|
|
|
|
|
|
|
LL | "~!@#$%^&*()-_=+foo" => {},
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:134:9
|
2021-11-04 12:52:36 +00:00
|
|
|
|
|
|
|
|
LL | "Воды" => {},
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: consider changing the case of this arm to respect `to_lowercase`
|
|
|
|
|
|
|
|
|
LL | "воды" => {},
|
|
|
|
| ~~~~~~
|
|
|
|
|
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:145:9
|
2021-11-04 12:52:36 +00:00
|
|
|
|
|
|
|
|
LL | "barDz" => {},
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: consider changing the case of this arm to respect `to_lowercase`
|
|
|
|
|
|
|
|
|
LL | "bardz" => {},
|
|
|
|
| ~~~~~~
|
|
|
|
|
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:155:9
|
2021-11-04 12:52:36 +00:00
|
|
|
|
|
|
|
|
LL | "bARʁ" => {},
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: consider changing the case of this arm to respect `to_uppercase`
|
|
|
|
|
|
|
|
|
LL | "BARʁ" => {},
|
|
|
|
| ~~~~~~
|
|
|
|
|
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:165:9
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | "Bar" => {},
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
help: consider changing the case of this arm to respect `to_ascii_lowercase`
|
|
|
|
|
|
|
|
|
LL | "bar" => {},
|
|
|
|
| ~~~~~
|
|
|
|
|
|
|
|
error: this `match` arm has a differing case than its expression
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/match_str_case_mismatch.rs:180:9
|
2021-10-21 11:11:36 +00:00
|
|
|
|
|
|
|
|
LL | "bAR" => {},
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
help: consider changing the case of this arm to respect `to_ascii_uppercase`
|
|
|
|
|
|
|
|
|
LL | "BAR" => {},
|
|
|
|
| ~~~~~
|
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2021-10-21 11:11:36 +00:00
|
|
|
|