@@ -18,6 +18,8 @@ error[E0019]: static contains unimplemented expression type
18
18
|
19
19
LL | static STATIC11: Box<MyOwned> = box MyOwned;
20
20
| ^^^^^^^
21
+ |
22
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
21
23
22
24
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
23
25
--> $DIR/check-static-values-constraints.rs:90:32
@@ -36,6 +38,8 @@ error[E0019]: static contains unimplemented expression type
36
38
|
37
39
LL | box MyOwned,
38
40
| ^^^^^^^
41
+ |
42
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
39
43
40
44
error[E0010]: allocations are not allowed in statics
41
45
--> $DIR/check-static-values-constraints.rs:97:5
@@ -48,6 +52,8 @@ error[E0019]: static contains unimplemented expression type
48
52
|
49
53
LL | box MyOwned,
50
54
| ^^^^^^^
55
+ |
56
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
51
57
52
58
error[E0010]: allocations are not allowed in statics
53
59
--> $DIR/check-static-values-constraints.rs:102:6
@@ -60,6 +66,8 @@ error[E0019]: static contains unimplemented expression type
60
66
|
61
67
LL | &box MyOwned,
62
68
| ^^^^^^^
69
+ |
70
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
63
71
64
72
error[E0010]: allocations are not allowed in statics
65
73
--> $DIR/check-static-values-constraints.rs:104:6
@@ -72,6 +80,8 @@ error[E0019]: static contains unimplemented expression type
72
80
|
73
81
LL | &box MyOwned,
74
82
| ^^^^^^^
83
+ |
84
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
75
85
76
86
error[E0010]: allocations are not allowed in statics
77
87
--> $DIR/check-static-values-constraints.rs:111:5
@@ -84,6 +94,8 @@ error[E0019]: static contains unimplemented expression type
84
94
|
85
95
LL | box 3;
86
96
| ^
97
+ |
98
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
87
99
88
100
error[E0507]: cannot move out of static item `x`
89
101
--> $DIR/check-static-values-constraints.rs:116:45
@@ -105,6 +117,8 @@ error[E0019]: static contains unimplemented expression type
105
117
|
106
118
LL | let y = { static x: Box<isize> = box 3; x };
107
119
| ^
120
+ |
121
+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
108
122
109
123
error: aborting due to 17 previous errors
110
124
0 commit comments