Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
type-alias-enum-variants
/
self-in-enum-definition.rs
blob: 63b21faa62bd2ce0486cad546d4299ec5a6f6a88 [
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 const-evaluating
}
fn
main
()
{}