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