fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
610 B26 linesraw
1warning: skipping const checks
2  --> $DIR/mutable_references.rs:30:10
3   |
4LL |         *MEH.x.get() = 99;
5   |          ^^^^^
6
7warning: skipping const checks
8  --> $DIR/mutable_references.rs:30:9
9   |
10LL |         *MEH.x.get() = 99;
11   |         ^^^^^^^^^^^^^^^^^
12
13warning: skipping const checks
14  --> $DIR/mutable_references.rs:33:5
15   |
16LL |     *OH_YES = 99;
17   |     ^^^^^^^^^^^^
18
19error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
20  --> $DIR/mutable_references.rs:33:5
21   |
22LL |     *OH_YES = 99;
23   |     ^^^^^^^^^^^^ cannot assign
24
25error: aborting due to previous error
26