11error: type of pattern does not match the expression type
2- --> tests/ui/pattern_type_mismatch/syntax.rs:16 :9
2+ --> tests/ui/pattern_type_mismatch/syntax.rs:19 :9
33 |
44LL | Some(_) => (),
55 | ^^^^^^^
@@ -9,63 +9,63 @@ LL | Some(_) => (),
99 = help: to override `-D warnings` add `#[allow(clippy::pattern_type_mismatch)]`
1010
1111error: type of pattern does not match the expression type
12- --> tests/ui/pattern_type_mismatch/syntax.rs:36 :12
12+ --> tests/ui/pattern_type_mismatch/syntax.rs:39 :12
1313 |
1414LL | if let Some(_) = ref_value {}
1515 | ^^^^^^^
1616 |
1717 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
1818
1919error: type of pattern does not match the expression type
20- --> tests/ui/pattern_type_mismatch/syntax.rs:48 :15
20+ --> tests/ui/pattern_type_mismatch/syntax.rs:51 :15
2121 |
2222LL | while let Some(_) = ref_value {
2323 | ^^^^^^^
2424 |
2525 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
2626
2727error: type of pattern does not match the expression type
28- --> tests/ui/pattern_type_mismatch/syntax.rs:68 :9
28+ --> tests/ui/pattern_type_mismatch/syntax.rs:71 :9
2929 |
3030LL | for (_a, _b) in slice.iter() {}
3131 | ^^^^^^^^
3232 |
3333 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
3434
3535error: type of pattern does not match the expression type
36- --> tests/ui/pattern_type_mismatch/syntax.rs:79 :9
36+ --> tests/ui/pattern_type_mismatch/syntax.rs:82 :9
3737 |
3838LL | let (_n, _m) = ref_value;
3939 | ^^^^^^^^
4040 |
4141 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
4242
4343error: type of pattern does not match the expression type
44- --> tests/ui/pattern_type_mismatch/syntax.rs:89 :12
44+ --> tests/ui/pattern_type_mismatch/syntax.rs:92 :12
4545 |
4646LL | fn foo((_a, _b): &(i32, i32)) {}
4747 | ^^^^^^^^
4848 |
4949 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
5050
5151error: type of pattern does not match the expression type
52- --> tests/ui/pattern_type_mismatch/syntax.rs:104 :10
52+ --> tests/ui/pattern_type_mismatch/syntax.rs:107 :10
5353 |
5454LL | foo(|(_a, _b)| ());
5555 | ^^^^^^^^
5656 |
5757 = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
5858
5959error: type of pattern does not match the expression type
60- --> tests/ui/pattern_type_mismatch/syntax.rs:121 :9
60+ --> tests/ui/pattern_type_mismatch/syntax.rs:124 :9
6161 |
6262LL | Some(_) => (),
6363 | ^^^^^^^
6464 |
6565 = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
6666
6767error: type of pattern does not match the expression type
68- --> tests/ui/pattern_type_mismatch/syntax.rs:142 :17
68+ --> tests/ui/pattern_type_mismatch/syntax.rs:145 :17
6969 |
7070LL | Some(_) => (),
7171 | ^^^^^^^
0 commit comments