fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
341 B13 linesraw
1error: any use of this value will cause an error
2  --> $DIR/dangling_raw_ptr.rs:1:1
3   |
4LL | / const FOO: *const u32 = {
5LL | |     let x = 42;
6LL | |     &x
7LL | | };
8   | |__^ type validation failed: encountered dangling pointer in final constant
9   |
10   = note: `#[deny(const_err)]` on by default
11
12error: aborting due to previous error
13