1error: 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
3   |
4LL | /     let data = match wrapper {
5LL | |         SingleVariantEnum::Variant(i) => i,
6LL | |     };
7   | |______^ help: try this: `let SingleVariantEnum::Variant(data) = wrapper;`
8   |
9   = note: `-D clippy::infallible-destructuring-match` implied by `-D warnings`
10
11error: 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
13   |
14LL | /     let data = match wrapper {
15LL | |         TupleStruct(i) => i,
16LL | |     };
17   | |______^ help: try this: `let TupleStruct(data) = wrapper;`
18
19error: 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
21   |
22LL | /     let data = match wrapper {
23LL | |         Ok(i) => i,
24LL | |     };
25   | |______^ help: try this: `let Ok(data) = wrapper;`
26
27error: aborting due to 3 previous errors
28
29