]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/dangling.stderr
Rollup merge of #80733 - steffahn:prettify_pin_links, r=jyn514
[rust.git] / src / test / ui / consts / const-eval / dangling.stderr
1 error: any use of this value will cause an error
2   --> $DIR/dangling.rs:8:16
3    |
4 LL | / const TEST: () = { unsafe {
5 LL | |     let slice: *const [u8] = mem::transmute((1usize, usize::MAX));
6 LL | |     let _val = &*slice;
7    | |                ^^^^^^^ invalid metadata in wide pointer: slice is bigger than largest supported object
8 LL | |
9 ...  |
10 LL | |
11 LL | | } };
12    | |____-
13    |
14    = note: `#[deny(const_err)]` on by default
15    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
16    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
17
18 error: aborting due to previous error
19