]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: type of pattern does not match the expression type |
2 | --> $DIR/pattern_tuples.rs:11:9 | |
3 | | | |
4 | LL | let TupleStruct(_) = ref_value; | |
5 | | ^^^^^^^^^^^^^^ | |
6 | | | |
f20569fa | 7 | = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings |
2b03887a | 8 | = note: `-D clippy::pattern-type-mismatch` implied by `-D warnings` |
f20569fa XL |
9 | |
10 | error: type of pattern does not match the expression type | |
11 | --> $DIR/pattern_tuples.rs:12:25 | |
12 | | | |
13 | LL | if let &TupleStruct(Some(_)) = ref_value {} | |
14 | | ^^^^^^^ | |
15 | | | |
16 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
17 | ||
18 | error: type of pattern does not match the expression type | |
19 | --> $DIR/pattern_tuples.rs:13:24 | |
20 | | | |
21 | LL | if let TupleStruct(Some(_)) = *ref_value {} | |
22 | | ^^^^^^^ | |
23 | | | |
24 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
25 | ||
26 | error: type of pattern does not match the expression type | |
27 | --> $DIR/pattern_tuples.rs:30:12 | |
28 | | | |
29 | LL | if let TupleEnum::Var(_) = ref_value {} | |
30 | | ^^^^^^^^^^^^^^^^^ | |
31 | | | |
32 | = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
33 | ||
34 | error: type of pattern does not match the expression type | |
35 | --> $DIR/pattern_tuples.rs:31:28 | |
36 | | | |
37 | LL | if let &TupleEnum::Var(Some(_)) = ref_value {} | |
38 | | ^^^^^^^ | |
39 | | | |
40 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
41 | ||
42 | error: type of pattern does not match the expression type | |
43 | --> $DIR/pattern_tuples.rs:32:27 | |
44 | | | |
45 | LL | if let TupleEnum::Var(Some(_)) = *ref_value {} | |
46 | | ^^^^^^^ | |
47 | | | |
48 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
49 | ||
50 | error: type of pattern does not match the expression type | |
51 | --> $DIR/pattern_tuples.rs:33:12 | |
52 | | | |
53 | LL | if let TupleEnum::Empty = ref_value {} | |
54 | | ^^^^^^^^^^^^^^^^ | |
55 | | | |
56 | = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
57 | ||
58 | error: type of pattern does not match the expression type | |
59 | --> $DIR/pattern_tuples.rs:48:9 | |
60 | | | |
61 | LL | let (_a, _b) = ref_value; | |
62 | | ^^^^^^^^ | |
63 | | | |
64 | = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
65 | ||
66 | error: type of pattern does not match the expression type | |
67 | --> $DIR/pattern_tuples.rs:49:18 | |
68 | | | |
69 | LL | if let &(_a, Some(_)) = ref_value {} | |
70 | | ^^^^^^^ | |
71 | | | |
72 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
73 | ||
74 | error: type of pattern does not match the expression type | |
75 | --> $DIR/pattern_tuples.rs:50:17 | |
76 | | | |
77 | LL | if let (_a, Some(_)) = *ref_value {} | |
78 | | ^^^^^^^ | |
79 | | | |
80 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
81 | ||
82 | error: aborting due to 10 previous errors | |
83 |