Improve collapsible_match error message syntax

This commit is contained in:
sobolevn 2024-08-18 19:40:56 +03:00
parent bfe7f070bd
commit 4e6fc6fa05
No known key found for this signature in database
GPG key ID: FF672D568AE3C73E
2 changed files with 2 additions and 2 deletions

View file

@ -223,7 +223,7 @@ help: the outer pattern can be modified to include the inner pattern
LL | if let Issue9647::A { a, .. } = x {
| ^ replace this binding
LL | if let Some(u) = a {
| ^^^^^^^ with this pattern, prefixed by a:
| ^^^^^^^ with this pattern, prefixed by `a`:
error: this `if let` can be collapsed into the outer `if let`
--> tests/ui/collapsible_match.rs:292:9