fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
580 B15 linesraw
1error[E0529]: expected an array or slice, found `Vec<u32>`
2  --> $DIR/pattern-struct-with-slice-vec-field.rs:21:18
3   |
4LL |         Foo { v: [1, 2] } => {}
5   |                  ^^^^^^ pattern cannot match with input type `Vec<u32>`
6
7error[E0529]: expected an array or slice, found `Vec<u32>`
8  --> $DIR/pattern-struct-with-slice-vec-field.rs:29:18
9   |
10LL |         Bar { v: [1, 2] } => {}
11   |                  ^^^^^^ pattern cannot match with input type `Vec<u32>`
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0529`.