]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/pattern-struct-with-slice-vec-field.stderr
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / suggestions / pattern-struct-with-slice-vec-field.stderr
1 error[E0529]: expected an array or slice, found `Vec<u32>`
2   --> $DIR/pattern-struct-with-slice-vec-field.rs:21:18
3    |
4 LL |         Foo { v: [1, 2] } => {}
5    |                  ^^^^^^ pattern cannot match with input type `Vec<u32>`
6
7 error[E0529]: expected an array or slice, found `Vec<u32>`
8   --> $DIR/pattern-struct-with-slice-vec-field.rs:29:18
9    |
10 LL |         Bar { v: [1, 2] } => {}
11    |                  ^^^^^^ pattern cannot match with input type `Vec<u32>`
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0529`.