const-destructure 0.1.3

Destructuring in const contexts on stable Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0026]: struct `Wrap` does not have a field named `unknown`
 --> compile_fail_tests/struct_unknown_field.rs:9:46
  |
9 |         const_destructure!(let Wrap { value, unknown: _ } = self);
  |                                              ^^^^^^^ struct `Wrap` does not have this field

error[E0609]: no field `unknown` on type `&Wrap<T>`
 --> compile_fail_tests/struct_unknown_field.rs:9:46
  |
9 |         const_destructure!(let Wrap { value, unknown: _ } = self);
  |                                              ^^^^^^^ unknown field
  |
  = note: available field is: `value`