blob: dfe4639c7746fd47c0aef0860795eaaf6d02e3e8 (
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
80
|
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:11:9
|
LL | Some(_) => (),
| ^^^^^^^
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
= note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::pattern_type_mismatch)]`
error: type of pattern does not match the expression type
--> $DIR/syntax.rs:31: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:43: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:62: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:73: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:83: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:98: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:115: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:136: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
|