fork/rust

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

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

master
1.2 KiB37 linesraw
1error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
2  --> $DIR/mutable_references.rs:35:5
3   |
4LL |     *OH_YES = 99;
5   |     ^^^^^^^^^^^^ cannot assign
6
7warning: skipping const checks
8   |
9help: skipping check that does not even have a feature gate
10  --> $DIR/mutable_references.rs:8:26
11   |
12LL | static FOO: &&mut u32 = &&mut 42;
13   |                          ^^^^^^^
14help: skipping check that does not even have a feature gate
15  --> $DIR/mutable_references.rs:12:23
16   |
17LL | static BAR: &mut () = &mut ();
18   |                       ^^^^^^^
19help: skipping check that does not even have a feature gate
20  --> $DIR/mutable_references.rs:17:28
21   |
22LL | static BOO: &mut Foo<()> = &mut Foo(());
23   |                            ^^^^^^^^^^^^
24help: skipping check that does not even have a feature gate
25  --> $DIR/mutable_references.rs:25:8
26   |
27LL |     x: &UnsafeCell::new(42),
28   |        ^^^^^^^^^^^^^^^^^^^^
29help: skipping check that does not even have a feature gate
30  --> $DIR/mutable_references.rs:29:27
31   |
32LL | static OH_YES: &mut i32 = &mut 42;
33   |                           ^^^^^^^
34
35error: aborting due to previous error; 1 warning emitted
36
37For more information about this error, try `rustc --explain E0594`.