Skip to content

Commit

Permalink
Fix file name
Browse files Browse the repository at this point in the history
  • Loading branch information
long-long-float committed Mar 3, 2024
1 parent 300ca5c commit a74c295
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,19 +1,19 @@
error[E0529]: expected an array or slice, found `Vec<Struct>`
--> $DIR/issue120605.rs:7:16
--> $DIR/suppress-consider-slicing-issue-120605.rs:7:16
|
LL | if let [Struct { a: [] }] = &self.a {
| ^^^^^^^^^^^^^^^^^^ ------- help: consider slicing here: `&self.a[..]`
| |
| pattern cannot match with input type `Vec<Struct>`

error[E0529]: expected an array or slice, found `Vec<Struct>`
--> $DIR/issue120605.rs:7:29
--> $DIR/suppress-consider-slicing-issue-120605.rs:7:29
|
LL | if let [Struct { a: [] }] = &self.a {
| ^^ pattern cannot match with input type `Vec<Struct>`

error[E0529]: expected an array or slice, found `Vec<Struct>`
--> $DIR/issue120605.rs:13:29
--> $DIR/suppress-consider-slicing-issue-120605.rs:13:29
|
LL | if let [Struct { a: [] }] = &self.a[..] {
| ^^ pattern cannot match with input type `Vec<Struct>`
Expand Down

0 comments on commit a74c295

Please sign in to comment.