report UB when the niche value refers to the untagged variant

This commit is contained in:
Ralf Jung 2024-11-30 18:06:33 +01:00
parent ce95a44db6
commit a36652c274
4 changed files with 29 additions and 21 deletions

View file

@ -10,6 +10,7 @@
#![feature(never_type)]
#![feature(rustdoc_internals)]
#![feature(slice_ptr_get)]
#![feature(strict_overflow_ops)]
#![feature(trait_alias)]
#![feature(try_blocks)]
#![feature(unqualified_local_imports)]