enum_convert 0.2.0

A Rust procedural macro library for deriving automatic conversions between enum variants
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0026]: variant `Source::Data` does not have a field named `nonexistent`
  --> tests/enum_from/compile_fail/field/invalid_source.rs:12:34
   |
12 |         #[enum_from(Source::Data.nonexistent)] // Invalid field name
   |                                  ^^^^^^^^^^^ variant `Source::Data` does not have this field

error: pattern requires `..` due to inaccessible fields
 --> tests/enum_from/compile_fail/field/invalid_source.rs:7:10
  |
7 | #[derive(EnumFrom)]
  |          ^^^^^^^^
  |
  = note: this error originates in the derive macro `EnumFrom` (in Nightly builds, run with -Z macro-backtrace for more info)
help: ignore the inaccessible and unused fields
  |
12|         #[enum_from(Source::Data.nonexistent, ..)] // Invalid field name
  |                                             ++++