]> git.lizzy.rs Git - rust.git/blob - tests/ui/rest_pat_in_fully_bound_structs.stderr
iterate List by value
[rust.git] / tests / ui / rest_pat_in_fully_bound_structs.stderr
1 error: unnecessary use of `..` pattern in struct binding. All fields were already bound
2   --> $DIR/rest_pat_in_fully_bound_structs.rs:22:9
3    |
4 LL |         A { a: 5, b: 42, c: "", .. } => {}, // Lint
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::rest-pat-in-fully-bound-structs` implied by `-D warnings`
8    = help: consider removing `..` from this binding
9
10 error: unnecessary use of `..` pattern in struct binding. All fields were already bound
11   --> $DIR/rest_pat_in_fully_bound_structs.rs:23:9
12    |
13 LL |         A { a: 0, b: 0, c: "", .. } => {},  // Lint
14    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider removing `..` from this binding
17
18 error: unnecessary use of `..` pattern in struct binding. All fields were already bound
19   --> $DIR/rest_pat_in_fully_bound_structs.rs:29:9
20    |
21 LL |         A { a: 0, b: 0, c: "", .. } => {}, // Lint
22    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: consider removing `..` from this binding
25
26 error: aborting due to 3 previous errors
27