Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
type-alias-enum-variants
/
self-in-enum-definition.rs
blob: 8dadd77fc16d5d4bbd1bf7dcbd91306749132d62 [
file
] [
log
] [
blame
]
#[
repr
(
u8
)]
enum
Alpha
{
V1
=
41
,
V2
=
Self
::
V1
as
u8
+
1
,
// OK; See #50072.
V3
=
Self
::
V1
{}
as
u8
+
2
,
//~ ERROR cycle detected when simplifying constant
}
fn
main
()
{}