1
1
error: 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
3
3
|
4
4
LL | Some(_) => (),
5
5
| ^^^^^^^
@@ -9,63 +9,63 @@ LL | Some(_) => (),
9
9
= help: to override `-D warnings` add `#[allow(clippy::pattern_type_mismatch)]`
10
10
11
11
error: 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
13
13
|
14
14
LL | if let Some(_) = ref_value {}
15
15
| ^^^^^^^
16
16
|
17
17
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
18
18
19
19
error: 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
21
21
|
22
22
LL | while let Some(_) = ref_value {
23
23
| ^^^^^^^
24
24
|
25
25
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
26
26
27
27
error: 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
29
29
|
30
30
LL | for (_a, _b) in slice.iter() {}
31
31
| ^^^^^^^^
32
32
|
33
33
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
34
34
35
35
error: 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
37
37
|
38
38
LL | let (_n, _m) = ref_value;
39
39
| ^^^^^^^^
40
40
|
41
41
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
42
42
43
43
error: 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
45
45
|
46
46
LL | fn foo((_a, _b): &(i32, i32)) {}
47
47
| ^^^^^^^^
48
48
|
49
49
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
50
50
51
51
error: 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
53
53
|
54
54
LL | foo(|(_a, _b)| ());
55
55
| ^^^^^^^^
56
56
|
57
57
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
58
58
59
59
error: 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
61
61
|
62
62
LL | Some(_) => (),
63
63
| ^^^^^^^
64
64
|
65
65
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
66
66
67
67
error: 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
69
69
|
70
70
LL | Some(_) => (),
71
71
| ^^^^^^^
0 commit comments