mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 16:27:31 +00:00
11 lines
287 B
Plaintext
11 lines
287 B
Plaintext
error: const blocks cannot be used as patterns
|
|
--> $DIR/in-pat-recovery.rs:6:15
|
|
|
|
|
LL | const { 1 + 7 } => {}
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: use a named `const`-item or an `if`-guard (`x if x == const { ... }`) instead
|
|
|
|
error: aborting due to 1 previous error
|
|
|