Skip to content

Commit 7fdfe8b

Browse files
committed
Refer to #50072 re. hack.
1 parent 2e193f7 commit 7fdfe8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/type-alias-enum-variants/self-in-enum-definition.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[repr(u8)]
22
enum Alpha {
33
V1 = 41,
4-
V2 = Self::V1 as u8 + 1, // OK -- but why?
4+
V2 = Self::V1 as u8 + 1, // OK; See #50072.
55
V3 = Self::V1 {} as u8 + 2, //~ ERROR cycle detected when const-evaluating
66
}
77

src/test/ui/type-alias-enum-variants/self-in-enum-definition.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ note: cycle used when collecting item types in top-level module
1717
LL | / #[repr(u8)]
1818
LL | | enum Alpha {
1919
LL | | V1 = 41,
20-
LL | | V2 = Self::V1 as u8 + 1, // OK -- but why?
20+
LL | | V2 = Self::V1 as u8 + 1, // OK; See #50072.
2121
... |
2222
LL | |
2323
LL | | fn main() {}

0 commit comments

Comments
 (0)