1 error[E0308]: mismatched types
2 --> $DIR/match-ergonomics.rs:4:10
7 | expected `i32`, found reference
8 | help: you can probably remove the explicit borrow: `v`
10 = note: expected type `i32`
13 error[E0529]: expected an array or slice, found `std::vec::Vec<i32>`
14 --> $DIR/match-ergonomics.rs:8:9
17 | ^^^^ pattern cannot match with input type `std::vec::Vec<i32>`
19 error[E0529]: expected an array or slice, found `std::vec::Vec<i32>`
20 --> $DIR/match-ergonomics.rs:20:9
23 | ^^^ pattern cannot match with input type `std::vec::Vec<i32>`
25 error[E0308]: mismatched types
26 --> $DIR/match-ergonomics.rs:29:9
31 | expected `i32`, found reference
32 | help: you can probably remove the explicit borrow: `v`
34 = note: expected type `i32`
37 error[E0308]: mismatched types
38 --> $DIR/match-ergonomics.rs:40:13
40 LL | if let [&v] = &x[..] {}
43 | expected `i32`, found reference
44 | help: you can probably remove the explicit borrow: `v`
46 = note: expected type `i32`
49 error: aborting due to 5 previous errors
51 Some errors have detailed explanations: E0308, E0529.
52 For more information about an error, try `rustc --explain E0308`.