rust/tests/ui/suggestions/pattern-struct-with-slice-vec-field.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
580 B
Plaintext
Raw Normal View History

error[E0529]: expected an array or slice, found `Vec<u32>`
2022-04-17 23:08:23 -05:00
--> $DIR/pattern-struct-with-slice-vec-field.rs:21:18
|
LL | Foo { v: [1, 2] } => {}
| ^^^^^^ pattern cannot match with input type `Vec<u32>`
2022-04-17 23:08:23 -05:00
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`.