const-destructure 0.1.1

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:5:18
  |
5 | const fn test<T>(wrap: Wrap<T>) -> T {
  |                  ^^^^ the destructor for this type cannot be evaluated in constant functions
6 |     wrap.value
7 | }
  | - value is dropped here