]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: type of pattern does not match the expression type |
2 | --> $DIR/pattern_alternatives.rs:15:12 | |
3 | | | |
4 | LL | if let Value::B | Value::A(_) = 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_alternatives.rs:16:34 | |
12 | | | |
13 | LL | if let &Value::B | &Value::A(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_alternatives.rs:17:32 | |
20 | | | |
21 | LL | if let Value::B | Value::A(Some(_)) = *ref_value {} | |
22 | | ^^^^^^^ | |
23 | | | |
24 | = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings | |
25 | ||
26 | error: aborting due to 3 previous errors | |
27 |