fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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