mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
bless tests
This commit is contained in:
@@ -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(_) |
|
||||
|
||||
@@ -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 `_`
|
||||
|
||||
Reference in New Issue
Block a user