Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
consts
/
const_in_pattern
/
cyclic-const-pattern-issue-144719.stderr
blob: e89b6abcac33bb24c4ebcf87d09dd202d2f4b061 [
file
] [
edit
]
error
:
constant Y cannot be used
as
pattern
-->
$DIR
/
cyclic
-
const
-
pattern
-
issue
-
144719.rs
:
11
:
12
|
LL
|
if
let
Y
=
Y
{}
|
^
|
=
note
:
constants whose type references itself cannot be used
as
patterns
error
:
aborting due to
1
previous error