1 error: type of pattern does not match the expression type
2 --> $DIR/syntax.rs:11:9
7 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
8 = note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
10 error: type of pattern does not match the expression type
11 --> $DIR/syntax.rs:30:12
13 LL | if let Some(_) = ref_value {}
16 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
18 error: type of pattern does not match the expression type
19 --> $DIR/syntax.rs:41:15
21 LL | while let Some(_) = ref_value {
24 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
26 error: type of pattern does not match the expression type
27 --> $DIR/syntax.rs:59:9
29 LL | for (_a, _b) in slice.iter() {}
32 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
34 error: type of pattern does not match the expression type
35 --> $DIR/syntax.rs:69:9
37 LL | let (_n, _m) = ref_value;
40 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
42 error: type of pattern does not match the expression type
43 --> $DIR/syntax.rs:78:12
45 LL | fn foo((_a, _b): &(i32, i32)) {}
48 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
50 error: type of pattern does not match the expression type
51 --> $DIR/syntax.rs:92:10
53 LL | foo(|(_a, _b)| ());
56 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
58 error: type of pattern does not match the expression type
59 --> $DIR/syntax.rs:108:9
64 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
66 error: type of pattern does not match the expression type
67 --> $DIR/syntax.rs:128:17
72 LL | matching_macro!(value);
73 | ---------------------- in this macro invocation
75 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
76 = note: this error originates in the macro `matching_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
78 error: aborting due to 9 previous errors