@@ -18,6 +18,8 @@ error[E0019]: static contains unimplemented expression type
1818 |
1919LL | static STATIC11: Box<MyOwned> = box MyOwned;
2020 | ^^^^^^^
21+ |
22+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
2123
2224error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
2325 --> $DIR/check-static-values-constraints.rs:90:32
@@ -36,6 +38,8 @@ error[E0019]: static contains unimplemented expression type
3638 |
3739LL | box MyOwned,
3840 | ^^^^^^^
41+ |
42+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
3943
4044error[E0010]: allocations are not allowed in statics
4145 --> $DIR/check-static-values-constraints.rs:97:5
@@ -48,6 +52,8 @@ error[E0019]: static contains unimplemented expression type
4852 |
4953LL | box MyOwned,
5054 | ^^^^^^^
55+ |
56+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
5157
5258error[E0010]: allocations are not allowed in statics
5359 --> $DIR/check-static-values-constraints.rs:102:6
@@ -60,6 +66,8 @@ error[E0019]: static contains unimplemented expression type
6066 |
6167LL | &box MyOwned,
6268 | ^^^^^^^
69+ |
70+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
6371
6472error[E0010]: allocations are not allowed in statics
6573 --> $DIR/check-static-values-constraints.rs:104:6
@@ -72,6 +80,8 @@ error[E0019]: static contains unimplemented expression type
7280 |
7381LL | &box MyOwned,
7482 | ^^^^^^^
83+ |
84+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
7585
7686error[E0010]: allocations are not allowed in statics
7787 --> $DIR/check-static-values-constraints.rs:111:5
@@ -84,6 +94,8 @@ error[E0019]: static contains unimplemented expression type
8494 |
8595LL | box 3;
8696 | ^
97+ |
98+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
8799
88100error[E0507]: cannot move out of static item `x`
89101 --> $DIR/check-static-values-constraints.rs:116:45
@@ -105,6 +117,8 @@ error[E0019]: static contains unimplemented expression type
105117 |
106118LL | let y = { static x: Box<isize> = box 3; x };
107119 | ^
120+ |
121+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
108122
109123error: aborting due to 17 previous errors
110124
0 commit comments