]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/assume-type-intrinsics.stderr
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / ui / consts / assume-type-intrinsics.stderr
1 error: any use of this value will cause an error
2   --> $SRC_DIR/core/src/mem/maybe_uninit.rs:LL:COL
3    |
4 LL |               intrinsics::assert_inhabited::<T>();
5    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |               |
7    |               aborted execution: attempted to instantiate uninhabited type `!`
8    |               inside `MaybeUninit::<!>::assume_init` at $SRC_DIR/core/src/mem/maybe_uninit.rs:LL:COL
9    |               inside `_BAD` at $DIR/assume-type-intrinsics.rs:11:9
10    | 
11   ::: $DIR/assume-type-intrinsics.rs:10:5
12    |
13 LL | /     const _BAD: () = unsafe {
14 LL | |         MaybeUninit::<!>::uninit().assume_init();
15 LL | |     };
16    | |______-
17    |
18    = note: `#[deny(const_err)]` on by default
19    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
20    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
21
22 error: aborting due to previous error
23