Skip to content

beta regression matching unit-like structs with .. #30379

Closed
@durka

Description

@durka

This code

struct Empty;

match Empty {
    Empty(..) => {}
}

compiles on stable 1.5 (no RFC 218 warning) but fails on beta 1.6 with E0164.

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions