Tests finally working
This commit is contained in:
parent
4255a5afd5
commit
3282b549ac
@ -6,8 +6,6 @@ fn main() {
|
||||
|
||||
const _BAD: () = unsafe {
|
||||
MaybeUninit::<!>::uninit().assume_init();
|
||||
//~^ ERROR: the type `!` does not permit being left uninitialized
|
||||
//~| this code causes undefined behavior when executed
|
||||
//~| WARN: the type `!` does not permit being left uninitialized
|
||||
//~^ WARN: the type `!` does not permit being left uninitialized
|
||||
};
|
||||
}
|
||||
|
@ -13,9 +13,6 @@ LL | intrinsics::assert_inhabited::<T>();
|
||||
LL | / const _BAD: () = unsafe {
|
||||
LL | | MaybeUninit::<!>::uninit().assume_init();
|
||||
LL | |
|
||||
LL | |
|
||||
LL | |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |______-
|
||||
|
|
||||
|
Loading…
Reference in New Issue
Block a user