Re-allow pattern-matching structs (#3215)
This commit is contained in:
parent
08441fca76
commit
aa3df17445
@ -283,8 +283,6 @@ fn check_pat(pcx: pat_ctxt, pat: @ast::pat, expected: ty::t) {
|
||||
for fields.each |field| {
|
||||
match field_map.find(field.ident) {
|
||||
some(index) => {
|
||||
tcx.sess.span_err(pat.span, ~"Pattern-matching structs \
|
||||
is not allowed (#3215) until the next snapshot.");
|
||||
let class_field = class_fields[index];
|
||||
let field_type = ty::lookup_field_type(tcx,
|
||||
class_id,
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-test
|
||||
struct Foo {
|
||||
x: int;
|
||||
y: int;
|
||||
|
Loading…
x
Reference in New Issue
Block a user