Sign in
◑
Theme
rust
/
rust
/
2ee54ff4e93d3ff4eaed85d2386ab70fc79b3701
/
.
/
tests
/
ui
/
destructuring-assignment
/
refutable-enum-assignment.rs
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
}