summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/pattern-struct-with-slice-vec-field.stderr
blob: 5b48a8b18a5147cdd371b77e6dfa2060fd63d600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0529]: expected an array or slice, found `Vec<u32>`
  --> $DIR/pattern-struct-with-slice-vec-field.rs:21:18
   |
LL |         Foo { v: [1, 2] } => {}
   |                  ^^^^^^ pattern cannot match with input type `Vec<u32>`

error[E0529]: expected an array or slice, found `Vec<u32>`
  --> $DIR/pattern-struct-with-slice-vec-field.rs:29:18
   |
LL |         Bar { v: [1, 2] } => {}
   |                  ^^^^^^ pattern cannot match with input type `Vec<u32>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0529`.