const-destructure 0.1.3

Destructuring in const contexts on stable Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
error[E0025]: field `value` bound multiple times in the pattern
 --> compile_fail_tests/struct_duplicate_field.rs:9:9
  |
9 |         const_destructure!(let Wrap { value: v1, value: v2 } = self);
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |         |
  |         multiple uses of `value` in pattern
  |         first use of `value`
  |
  = note: this error originates in the macro `$crate::const_destructure` which comes from the expansion of the macro `const_destructure` (in Nightly builds, run with -Z macro-backtrace for more info)