blob: dcd8e8ea294557e8d61a020af85eec6c0ab0bf34 [file]
// Regression test for <https://github.com/rust-lang/rust/issues/157553>.
enum Foo {
One,
Two,
}
fn main() {
Foo::One = Foo::One;
//~^ ERROR refutable pattern in assignment
}