Tests finally working

This commit is contained in:
Albin Hedman 2020-12-06 19:29:35 +01:00
parent 4255a5afd5
commit 3282b549ac
2 changed files with 1 additions and 6 deletions

View File

@ -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
};
}

View File

@ -13,9 +13,6 @@ LL | intrinsics::assert_inhabited::<T>();
LL | / const _BAD: () = unsafe {
LL | | MaybeUninit::<!>::uninit().assume_init();
LL | |
LL | |
LL | |
LL | |
LL | | };
| |______-
|