error: type of pattern does not match the expression type
|
| enum Test {
| ______^
| | First,
| |_________^
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
Running clippy on the following code:
results in the following error