Re-allow pattern-matching structs (#3215)

This commit is contained in:
Ben Blum 2012-08-17 15:37:00 -04:00
parent 08441fca76
commit aa3df17445
2 changed files with 0 additions and 3 deletions

View file

@ -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,

View file

@ -1,4 +1,3 @@
// xfail-test
struct Foo {
x: int;
y: int;