1 error: you seem to be trying to use `match` to destructure a single infallible pattern. Consider using `let`
2 --> $DIR/infallible_destructuring_match.rs:26:5
4 LL | / let data = match wrapper {
5 LL | | SingleVariantEnum::Variant(i) => i,
7 | |______^ help: try this: `let SingleVariantEnum::Variant(data) = wrapper;`
9 = note: `-D clippy::infallible-destructuring-match` implied by `-D warnings`
11 error: you seem to be trying to use `match` to destructure a single infallible pattern. Consider using `let`
12 --> $DIR/infallible_destructuring_match.rs:58:5
14 LL | / let data = match wrapper {
15 LL | | TupleStruct(i) => i,
17 | |______^ help: try this: `let TupleStruct(data) = wrapper;`
19 error: you seem to be trying to use `match` to destructure a single infallible pattern. Consider using `let`
20 --> $DIR/infallible_destructuring_match.rs:90:5
22 LL | / let data = match wrapper {
25 | |______^ help: try this: `let Ok(data) = wrapper;`
27 error: aborting due to 3 previous errors