]> git.lizzy.rs Git - rust.git/blob - tests/ui/unneeded_field_pattern.stderr
remove all //~ from tests
[rust.git] / tests / ui / unneeded_field_pattern.stderr
1 error: You matched a field with a wildcard pattern. Consider using `..` instead
2   --> $DIR/unneeded_field_pattern.rs:17:15
3    |
4 17 |         Foo { a: _, b: 0, .. } => {}
5    |               ^^^^
6    |
7 note: lint level defined here
8   --> $DIR/unneeded_field_pattern.rs:4:9
9    |
10 4  | #![deny(unneeded_field_pattern)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^
12    = help: Try with `Foo { b: 0, .. }`
13
14 error: All the struct fields are matched to a wildcard pattern, consider using `..`.
15   --> $DIR/unneeded_field_pattern.rs:19:9
16    |
17 19 |         Foo { a: _, b: _, c: _ } => {}
18    |         ^^^^^^^^^^^^^^^^^^^^^^^^
19    |
20    = help: Try with `Foo { .. }` instead
21
22 error: aborting due to 2 previous errors
23