mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-17 13:16:20 -04:00
12 lines
193 B
Rust
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
|
|
}
|