11error: struct destructuring with rest (..)
2- --> tests/ui/rest_when_destructuring_struct.rs:20 :9
2+ --> tests/ui/rest_when_destructuring_struct.rs:23 :9
33 |
44LL | let S { a, b, .. } = s;
55 | ^^^^^^^^^^^^^^
@@ -13,7 +13,19 @@ LL + let S { a, b, c: _ } = s;
1313 |
1414
1515error: struct destructuring with rest (..)
16- --> tests/ui/rest_when_destructuring_struct.rs:27:9
16+ --> tests/ui/rest_when_destructuring_struct.rs:26:9
17+ |
18+ LL | let S { a, b, c, .. } = s;
19+ | ^^^^^^^^^^^^^^^^^
20+ |
21+ help: consider explicitly ignoring remaining fields with wildcard patterns (x: _)
22+ |
23+ LL - let S { a, b, c, .. } = s;
24+ LL + let S { a, b, c, } = s;
25+ |
26+
27+ error: struct destructuring with rest (..)
28+ --> tests/ui/rest_when_destructuring_struct.rs:33:9
1729 |
1830LL | E::B { .. } => (),
1931 | ^^^^^^^^^^^
@@ -25,7 +37,7 @@ LL + E::B { b1: _, b2: _ } => (),
2537 |
2638
2739error: struct destructuring with rest (..)
28- --> tests/ui/rest_when_destructuring_struct.rs:29 :9
40+ --> tests/ui/rest_when_destructuring_struct.rs:35 :9
2941 |
3042LL | E::C { .. } => (),
3143 | ^^^^^^^^^^^
@@ -37,7 +49,7 @@ LL + E::C { } => (),
3749 |
3850
3951error: struct destructuring with rest (..)
40- --> tests/ui/rest_when_destructuring_struct.rs:35 :9
52+ --> tests/ui/rest_when_destructuring_struct.rs:41 :9
4153 |
4254LL | E::B { b1: _, .. } => (),
4355 | ^^^^^^^^^^^^^^^^^^
@@ -48,5 +60,5 @@ LL - E::B { b1: _, .. } => (),
4860LL + E::B { b1: _, b2: _ } => (),
4961 |
5062
51- error: aborting due to 4 previous errors
63+ error: aborting due to 5 previous errors
5264
0 commit comments