2024-01-28 15:12:21 +00:00
|
|
|
error: expected a pattern, found an expression
|
|
|
|
--> $DIR/pat-lt-bracket-5.rs:2:9
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let v[0] = v[1];
|
2024-10-06 01:44:59 +00:00
|
|
|
| ^^^^ not a pattern
|
|
|
|
|
|
2024-10-30 19:08:08 +00:00
|
|
|
= note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2024-01-28 15:12:21 +00:00
|
|
|
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
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2024-01-28 15:12:21 +00:00
|
|
|
For more information about this error, try `rustc --explain E0425`.
|