blob: 2c8e66f9d1034be88833008cf20639ee2af396dc [file] [edit]
error: unnecessary rest pattern (`..`)
--> tests/ui/unnecessary_rest_pattern.rs:38:9
|
LL | let S { a, b, c, .. } = s;
| ^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::unnecessary-rest-pattern` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_rest_pattern)]`
help: consider removing the unnecessary rest pattern (`..`)
|
LL - let S { a, b, c, .. } = s;
LL + let S { a, b, c, } = s;
|
error: unnecessary rest pattern (`..`)
--> tests/ui/unnecessary_rest_pattern.rs:45:9
|
LL | E::B { b1, b2, .. } => (),
| ^^^^^^^^^^^^^^^^^^^
|
help: consider removing the unnecessary rest pattern (`..`)
|
LL - E::B { b1, b2, .. } => (),
LL + E::B { b1, b2, } => (),
|
error: unnecessary rest pattern (`..`)
--> tests/ui/unnecessary_rest_pattern.rs:47:9
|
LL | E::C { .. } => (),
| ^^^^^^^^^^^
|
help: consider removing the unnecessary rest pattern (`..`)
|
LL - E::C { .. } => (),
LL + E::C { } => (),
|
error: unnecessary rest pattern (`..`)
--> tests/ui/unnecessary_rest_pattern.rs:80:9
|
LL | let LocalNonExhaustive { field: _, .. } = ne;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: consider removing the unnecessary rest pattern (`..`)
|
LL - let LocalNonExhaustive { field: _, .. } = ne;
LL + let LocalNonExhaustive { field: _, } = ne;
|
error: aborting due to 4 previous errors