Patrick Walton
|
857ba988f1
|
libsyntax: Don't strip types and lifetimes from single-segment paths in
patterns.
This breaks code like:
fn main() {
match Some("foo") {
None::<int> => {}
Some(_) => {}
}
}
Change this code to not contain a type error. For example:
fn main() {
match Some("foo") {
None::<&str> => {}
Some(_) => {}
}
}
Closes #16353.
[breaking-change]
|
2014-08-12 10:33:16 -07:00 |
|