File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
error[E0529]: expected an array or slice, found `Vec<Struct>`
2
- --> $DIR/issue120605 .rs:7:16
2
+ --> $DIR/suppress-consider-slicing-issue-120605 .rs:7:16
3
3
|
4
4
LL | if let [Struct { a: [] }] = &self.a {
5
5
| ^^^^^^^^^^^^^^^^^^ ------- help: consider slicing here: `&self.a[..]`
6
6
| |
7
7
| pattern cannot match with input type `Vec<Struct>`
8
8
9
9
error[E0529]: expected an array or slice, found `Vec<Struct>`
10
- --> $DIR/issue120605 .rs:7:29
10
+ --> $DIR/suppress-consider-slicing-issue-120605 .rs:7:29
11
11
|
12
12
LL | if let [Struct { a: [] }] = &self.a {
13
13
| ^^ pattern cannot match with input type `Vec<Struct>`
14
14
15
15
error[E0529]: expected an array or slice, found `Vec<Struct>`
16
- --> $DIR/issue120605 .rs:13:29
16
+ --> $DIR/suppress-consider-slicing-issue-120605 .rs:13:29
17
17
|
18
18
LL | if let [Struct { a: [] }] = &self.a[..] {
19
19
| ^^ pattern cannot match with input type `Vec<Struct>`
You can’t perform that action at this time.
0 commit comments