made shadow_unrelated allow, added previous binding span note, fixed #319

This commit is contained in:
llogiq 2015-09-08 11:50:04 +02:00
parent b5d953bf7d
commit 4835372df5
4 changed files with 42 additions and 22 deletions

View file

@ -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
_ => (),
}
}