Skip to content

Commit 9ec8862

Browse files
authored
expand comment
1 parent eebf676 commit 9ec8862

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/ui/consts/const_discriminant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const TEST_V: Discriminant<SingleVariant> = discriminant(&SingleVariant::V);
2727

2828
pub const TEST_VOID: () = {
2929
// This is UB, but CTFE does not check validity so it does not detect this.
30+
// This is a regression test for https://github.com/rust-lang/rust/issues/89765.
3031
unsafe { std::mem::discriminant(&*(&() as *const () as *const Void)); };
3132
};
3233

0 commit comments

Comments
 (0)