Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
inline-const
/
in-pat-recovery.stderr
blob: 0698cff1480df9243dfe2950012e28384440e6f0 [
file
] [
log
] [
blame
]
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