mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
11 lines
305 B
Plaintext
11 lines
305 B
Plaintext
error: expected a pattern, found an expression
|
|
--> $DIR/issue-24197.rs:2:9
|
|
|
|
|
LL | let buf[0] = 0;
|
|
| ^^^^^^ not a pattern
|
|
|
|
|
= note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>
|
|
|
|
error: aborting due to 1 previous error
|
|
|