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:28:5
4 LL | / let data = match wrapper {
5 LL | | SingleVariantEnum::Variant(i) => i,
7 | |______^ help: try: `let SingleVariantEnum::Variant(data) = wrapper;`
9 = note: `-D clippy::infallible-destructuring-match` implied by `-D warnings`
10 = help: to override `-D warnings` add `#[allow(clippy::infallible_destructuring_match)]`
12 error: you seem to be trying to use `match` to destructure a single infallible pattern. Consider using `let`
13 --> $DIR/infallible_destructuring_match.rs:60:5
15 LL | / let data = match wrapper {
16 LL | | TupleStruct(i) => i,
18 | |______^ help: try: `let TupleStruct(data) = wrapper;`
20 error: you seem to be trying to use `match` to destructure a single infallible pattern. Consider using `let`
21 --> $DIR/infallible_destructuring_match.rs:84:5
23 LL | / let data = match wrapper {
24 LL | | TupleStructWithNonCopy(ref n) => n,
26 | |______^ help: try: `let TupleStructWithNonCopy(ref data) = wrapper;`
28 error: you seem to be trying to use `match` to destructure a single infallible pattern. Consider using `let`
29 --> $DIR/infallible_destructuring_match.rs:103:5
31 LL | / let data = match wrapper {
34 | |______^ help: try: `let Ok(data) = wrapper;`
36 error: aborting due to 4 previous errors