rust/src/test/ui/uninhabited/uninhabited-irrefutable.stderr

18 lines
559 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0005]: refutable pattern in local binding: `A(_)` not covered
2018-12-25 09:56:47 -06:00
--> $DIR/uninhabited-irrefutable.rs:27:9
2018-08-08 07:28:26 -05:00
|
LL | / enum Foo {
LL | | A(foo::SecretlyEmpty),
LL | | B(foo::NotSoSecretlyEmpty),
LL | | C(NotSoSecretlyEmpty),
LL | | D(u32),
LL | | }
| |_- `Foo` defined here
...
LL | let Foo::D(_y) = x; //~ ERROR refutable pattern in local binding: `A(_)` not covered
| ^^^^^^^^^^ pattern `A(_)` not covered
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0005`.