@@ -15,92 +15,44 @@ error[E0010]: allocations are not allowed in statics
1515LL | static STATIC11: Box<MyOwned> = box MyOwned;
1616 | ^^^^^^^^^^^ allocation not allowed in statics
1717
18- error[E0019]: static contains unimplemented expression type
19- --> $DIR/check-static-values-constraints.rs:79:37
20- |
21- LL | static STATIC11: Box<MyOwned> = box MyOwned;
22- | ^^^^^^^
23- |
24- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
25-
2618error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
27- --> $DIR/check-static-values-constraints.rs:90 :32
19+ --> $DIR/check-static-values-constraints.rs:89 :32
2820 |
2921LL | field2: SafeEnum::Variant4("str".to_string())
3022 | ^^^^^^^^^^^^^^^^^
3123
3224error[E0010]: allocations are not allowed in statics
33- --> $DIR/check-static-values-constraints.rs:95 :5
25+ --> $DIR/check-static-values-constraints.rs:94 :5
3426 |
3527LL | box MyOwned,
3628 | ^^^^^^^^^^^ allocation not allowed in statics
3729
38- error[E0019]: static contains unimplemented expression type
39- --> $DIR/check-static-values-constraints.rs:95:9
40- |
41- LL | box MyOwned,
42- | ^^^^^^^
43- |
44- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
45-
4630error[E0010]: allocations are not allowed in statics
47- --> $DIR/check-static-values-constraints.rs:97 :5
31+ --> $DIR/check-static-values-constraints.rs:95 :5
4832 |
4933LL | box MyOwned,
5034 | ^^^^^^^^^^^ allocation not allowed in statics
5135
52- error[E0019]: static contains unimplemented expression type
53- --> $DIR/check-static-values-constraints.rs:97:9
54- |
55- LL | box MyOwned,
56- | ^^^^^^^
57- |
58- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
59-
6036error[E0010]: allocations are not allowed in statics
61- --> $DIR/check-static-values-constraints.rs:102 :6
37+ --> $DIR/check-static-values-constraints.rs:99 :6
6238 |
6339LL | &box MyOwned,
6440 | ^^^^^^^^^^^ allocation not allowed in statics
6541
66- error[E0019]: static contains unimplemented expression type
67- --> $DIR/check-static-values-constraints.rs:102:10
68- |
69- LL | &box MyOwned,
70- | ^^^^^^^
71- |
72- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
73-
7442error[E0010]: allocations are not allowed in statics
75- --> $DIR/check-static-values-constraints.rs:104 :6
43+ --> $DIR/check-static-values-constraints.rs:100 :6
7644 |
7745LL | &box MyOwned,
7846 | ^^^^^^^^^^^ allocation not allowed in statics
7947
80- error[E0019]: static contains unimplemented expression type
81- --> $DIR/check-static-values-constraints.rs:104:10
82- |
83- LL | &box MyOwned,
84- | ^^^^^^^
85- |
86- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
87-
8848error[E0010]: allocations are not allowed in statics
89- --> $DIR/check-static-values-constraints.rs:111 :5
49+ --> $DIR/check-static-values-constraints.rs:106 :5
9050 |
9151LL | box 3;
9252 | ^^^^^ allocation not allowed in statics
9353
94- error[E0019]: static contains unimplemented expression type
95- --> $DIR/check-static-values-constraints.rs:111:9
96- |
97- LL | box 3;
98- | ^
99- |
100- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
101-
10254error[E0507]: cannot move out of static item `x`
103- --> $DIR/check-static-values-constraints.rs:116 :45
55+ --> $DIR/check-static-values-constraints.rs:110 :45
10456 |
10557LL | let y = { static x: Box<isize> = box 3; x };
10658 | ^
@@ -109,20 +61,12 @@ LL | let y = { static x: Box<isize> = box 3; x };
10961 | help: consider borrowing here: `&x`
11062
11163error[E0010]: allocations are not allowed in statics
112- --> $DIR/check-static-values-constraints.rs:116 :38
64+ --> $DIR/check-static-values-constraints.rs:110 :38
11365 |
11466LL | let y = { static x: Box<isize> = box 3; x };
11567 | ^^^^^ allocation not allowed in statics
11668
117- error[E0019]: static contains unimplemented expression type
118- --> $DIR/check-static-values-constraints.rs:116:42
119- |
120- LL | let y = { static x: Box<isize> = box 3; x };
121- | ^
122- |
123- = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
124-
125- error: aborting due to 17 previous errors
69+ error: aborting due to 10 previous errors
12670
127- Some errors have detailed explanations: E0010, E0015, E0019, E0493, E0507.
71+ Some errors have detailed explanations: E0010, E0015, E0493, E0507.
12872For more information about an error, try `rustc --explain E0010`.
0 commit comments