whichever 0.7.1

Implements a trait for an enum by forwarding to whichever variant it holds
Documentation
1
2
3
4
5
6
7
error: `#[dispatch]` goes on an enum or a struct, or on an impl block of one
 --> tests/ui/dispatch_on_a_function.rs:3:1
  |
3 | / fn area() -> u32 {
4 | |     1
5 | | }
  | |_^