rust/tests/ui/parser/pat-lt-bracket-5.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
542 B
Plaintext
Raw Permalink Normal View History

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];
| ^^^^ not a pattern
|
= 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
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
For more information about this error, try `rustc --explain E0425`.