Skip to content

Commit

Permalink
Tests finally working
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Dec 6, 2020
1 parent 4255a5a commit 3282b54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions src/test/ui/assume-type-intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
3 changes: 0 additions & 3 deletions src/test/ui/assume-type-intrinsics.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ LL | intrinsics::assert_inhabited::<T>();
LL | / const _BAD: () = unsafe {
LL | | MaybeUninit::<!>::uninit().assume_init();
LL | |
LL | |
LL | |
LL | |
LL | | };
| |______-
|
Expand Down

0 comments on commit 3282b54

Please sign in to comment.