blob: 12b3d3a8bd075cbe97bfe8d85769d992ce38e21e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:11:9
|
LL | Some(_) => (),
| ^^^^^^^
|
= note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:30:12
|
LL | if let Some(_) = ref_value {}
| ^^^^^^^
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:41:15
|
LL | while let Some(_) = ref_value {
| ^^^^^^^
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:59:9
|
LL | for (_a, _b) in slice.iter() {}
| ^^^^^^^^
|
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:69:9
|
LL | let (_n, _m) = ref_value;
| ^^^^^^^^
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:78:12
|
LL | fn foo((_a, _b): &(i32, i32)) {}
| ^^^^^^^^
|
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:92:10
|
LL | foo(|(_a, _b)| ());
| ^^^^^^^^
|
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:108:9
|
LL | Some(_) => (),
| ^^^^^^^
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:128:17
|
LL | Some(_) => (),
| ^^^^^^^
...
LL | matching_macro!(value);
| ---------------------- in this macro invocation
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
= note: this error originates in the macro `matching_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 9 previous errors
|