@@ -5,37 +5,31 @@ LL | static FOO: &&mut u32 = &&mut 42;
5
5
| ^^^^^^^
6
6
7
7
warning: skipping const checks
8
- --> $DIR/mutable_references.rs:8:25
9
- |
10
- LL | static FOO: &&mut u32 = &&mut 42;
11
- | ^^^^^^^^
12
-
13
- warning: skipping const checks
14
- --> $DIR/mutable_references.rs:12:23
8
+ --> $DIR/mutable_references.rs:11:23
15
9
|
16
10
LL | static BAR: &mut () = &mut ();
17
11
| ^^^^^^^
18
12
19
13
warning: skipping const checks
20
- --> $DIR/mutable_references.rs:17 :28
14
+ --> $DIR/mutable_references.rs:16 :28
21
15
|
22
16
LL | static BOO: &mut Foo<()> = &mut Foo(());
23
17
| ^^^^^^^^^^^^
24
18
25
19
warning: skipping const checks
26
- --> $DIR/mutable_references.rs:27 :8
20
+ --> $DIR/mutable_references.rs:26 :8
27
21
|
28
22
LL | x: &UnsafeCell::new(42),
29
23
| ^^^^^^^^^^^^^^^^^^^^
30
24
31
25
warning: skipping const checks
32
- --> $DIR/mutable_references.rs:31 :27
26
+ --> $DIR/mutable_references.rs:30 :27
33
27
|
34
28
LL | static OH_YES: &mut i32 = &mut 42;
35
29
| ^^^^^^^
36
30
37
31
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
38
- --> $DIR/mutable_references.rs:38 :5
32
+ --> $DIR/mutable_references.rs:37 :5
39
33
|
40
34
LL | *OH_YES = 99;
41
35
| ^^^^^^^^^^^^ cannot assign
0 commit comments