]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / pattern_type_mismatch / pattern_tuples.stderr
CommitLineData
f20569fa
XL
1error: type of pattern does not match the expression type
2 --> $DIR/pattern_tuples.rs:11:9
3 |
4LL | let TupleStruct(_) = ref_value;
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
8 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
9
10error: type of pattern does not match the expression type
11 --> $DIR/pattern_tuples.rs:12:25
12 |
13LL | if let &TupleStruct(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_tuples.rs:13:24
20 |
21LL | if let TupleStruct(Some(_)) = *ref_value {}
22 | ^^^^^^^
23 |
24 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
25
26error: type of pattern does not match the expression type
27 --> $DIR/pattern_tuples.rs:30:12
28 |
29LL | 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
34error: type of pattern does not match the expression type
35 --> $DIR/pattern_tuples.rs:31:28
36 |
37LL | if let &TupleEnum::Var(Some(_)) = ref_value {}
38 | ^^^^^^^
39 |
40 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
41
42error: type of pattern does not match the expression type
43 --> $DIR/pattern_tuples.rs:32:27
44 |
45LL | if let TupleEnum::Var(Some(_)) = *ref_value {}
46 | ^^^^^^^
47 |
48 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
49
50error: type of pattern does not match the expression type
51 --> $DIR/pattern_tuples.rs:33:12
52 |
53LL | 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
58error: type of pattern does not match the expression type
59 --> $DIR/pattern_tuples.rs:48:9
60 |
61LL | 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
66error: type of pattern does not match the expression type
67 --> $DIR/pattern_tuples.rs:49:18
68 |
69LL | if let &(_a, Some(_)) = ref_value {}
70 | ^^^^^^^
71 |
72 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
73
74error: type of pattern does not match the expression type
75 --> $DIR/pattern_tuples.rs:50:17
76 |
77LL | if let (_a, Some(_)) = *ref_value {}
78 | ^^^^^^^
79 |
80 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
81
82error: aborting due to 10 previous errors
83