]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_alternatives.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / pattern_type_mismatch / pattern_alternatives.stderr
CommitLineData
f20569fa
XL
1error: type of pattern does not match the expression type
2 --> $DIR/pattern_alternatives.rs:15:12
3 |
4LL | 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
10error: type of pattern does not match the expression type
11 --> $DIR/pattern_alternatives.rs:16:34
12 |
13LL | 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
18error: type of pattern does not match the expression type
19 --> $DIR/pattern_alternatives.rs:17:32
20 |
21LL | 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
26error: aborting due to 3 previous errors
27