fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
763 B26 linesraw
1error: encountered dangling pointer in final constant
2  --> $DIR/cell.rs:6:1
3   |
4LL | static FOO: Wrap<*mut u32> = Wrap(Cell::new(42).as_ptr());
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7error: encountered dangling pointer in final constant
8  --> $DIR/cell.rs:8:1
9   |
10LL | const FOO_CONST: Wrap<*mut u32> = Wrap(Cell::new(42).as_ptr());
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: encountered dangling pointer in final constant
14  --> $DIR/cell.rs:22:1
15   |
16LL | const FOO4_CONST: Wrap<*mut u32> = Wrap(FOO3_CONST.0.as_ptr());
17   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19error: encountered dangling pointer in final constant
20  --> $DIR/cell.rs:27:1
21   |
22LL | const FOO2: *mut u32 = Cell::new(42).as_ptr();
23   | ^^^^^^^^^^^^^^^^^^^^
24
25error: aborting due to 4 previous errors
26