Files
2026-06-07 22:53:49 +02:00

12 lines
193 B
Rust

// 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
}