mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
16 lines
456 B
Plaintext
16 lines
456 B
Plaintext
error: expected a pattern, found an expression
|
|
--> $DIR/pat-lt-bracket-5.rs:2:9
|
|
|
|
|
LL | let v[0] = v[1];
|
|
| ^^^^ arbitrary expressions are not allowed in patterns
|
|
|
|
error[E0425]: cannot find value `v` in this scope
|
|
--> $DIR/pat-lt-bracket-5.rs:2:16
|
|
|
|
|
LL | let v[0] = v[1];
|
|
| ^ not found in this scope
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|