1 error[E0005]: refutable pattern in local binding: `Bar` not covered
2 --> $DIR/issue-31561.rs:8:9
4 LL | let Thing::Foo(y) = Thing::Foo(1);
5 | ^^^^^^^^^^^^^ pattern `Bar` not covered
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0005`.