about summary refs log tree commit diff
path: root/tests/ui/inline-const/in-pat-recovery.stderr
blob: 0698cff1480df9243dfe2950012e28384440e6f0 (plain)
1
2
3
4
5
6
7
8
9
10
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