const-destructure 0.1.3

Destructuring in const contexts on stable Rust.
Documentation
1
2
3
4
5
6
7
8
error[E0493]: destructor of `Wrap<T>` cannot be evaluated at compile-time
 --> compile_fail_tests/struct_destructure.rs:6:19
  |
6 |     const fn test(self) -> T {
  |                   ^^^^ the destructor for this type cannot be evaluated in constant functions
7 |         self.value
8 |     }
  |     - value is dropped here