bless tests

This commit is contained in:
Karol Zwolak
2025-09-27 22:57:13 +02:00
parent 4735c2184c
commit a08228d284
4 changed files with 9 additions and 12 deletions
@@ -32,10 +32,10 @@ help: try adding parentheses to match on a tuple...
|
LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true
| + +
help: ...or a vertical bar to match on multiple alternatives
help: ...or a vertical bar to match on alternative
|
LL - Nucleotide::Adenine, Nucleotide::Cytosine, _ => true
LL + Nucleotide::Adenine | Nucleotide::Cytosine | _ => true
LL + Nucleotide::Adenine | Nucleotide::Cytosine, _ => true
|
error: unexpected `,` in pattern
@@ -8,7 +8,7 @@ help: try adding parentheses to match on a tuple...
|
LL | (Some(_),)
| + +
help: ...or a vertical bar to match on multiple alternatives
help: ...or a vertical bar to match on alternative
|
LL - Some(_),
LL + Some(_) |
+2 -2
View File
@@ -17,13 +17,13 @@ fn main() {
Some(_),
//~^ ERROR unexpected `,` in pattern
//~| HELP try adding parentheses to match on a tuple
//~| HELP or a vertical bar to match on multiple alternatives
//~| HELP or a vertical bar to match on alternative
}
match Some(false) {
Some(_),
//~^ ERROR unexpected `,` in pattern
//~| HELP try adding parentheses to match on a tuple
//~| HELP or a vertical bar to match on multiple alternatives
//~| HELP or a vertical bar to match on alternative
_ => {}
}
match Some(false) {
@@ -16,7 +16,7 @@ help: try adding parentheses to match on a tuple...
|
LL | (Some(_),)
| + +
help: ...or a vertical bar to match on multiple alternatives
help: ...or a vertical bar to match on alternative
|
LL - Some(_),
LL + Some(_) |
@@ -36,13 +36,10 @@ LL |
LL |
LL ~ _) => {}
|
help: ...or a vertical bar to match on multiple alternatives
help: ...or a vertical bar to match on alternative
|
LL ~ Some(_) |
LL +
LL +
LL +
LL ~ _ => {}
LL - Some(_),
LL + Some(_) |
|
error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`