fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
453 B15 linesraw
1warning: skipping const checks
2  --> $DIR/mutable_references.rs:28:8
3   |
4LL |     x: &UnsafeCell::new(42),
5   |        ^^^^^^^^^^^^^^^^^^^^
6
7error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
8  --> $DIR/mutable_references.rs:39:5
9   |
10LL |     *OH_YES = 99;
11   |     ^^^^^^^^^^^^ cannot assign
12
13error: aborting due to previous error; 1 warning emitted
14
15For more information about this error, try `rustc --explain E0594`.