made shadow_unrelated allow, added previous binding span note, fixed #319
This commit is contained in:
parent
b5d953bf7d
commit
4835372df5
4 changed files with 42 additions and 22 deletions
|
|
@ -27,4 +27,9 @@ fn main() {
|
|||
Some(p) => p, // no error, because the p above is in its own scope
|
||||
None => 0,
|
||||
};
|
||||
|
||||
match (x, o) {
|
||||
(1, Some(a)) | (a, Some(1)) => (), // no error though `a` appears twice
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue