1 error[E0493]: destructors cannot be evaluated at compile-time
2 --> $DIR/check-static-values-constraints.rs:65:43
4 LL | ..SafeStruct{field1: SafeEnum::Variant3(WithDtor),
5 | ___________________________________________^
7 LL | | field2: SafeEnum::Variant1}};
8 | |________________________________________________________________________________^ statics cannot evaluate destructors
10 error[E0010]: allocations are not allowed in statics
11 --> $DIR/check-static-values-constraints.rs:79:33
13 LL | static STATIC11: Box<MyOwned> = box MyOwned;
14 | ^^^^^^^^^^^ allocation not allowed in statics
16 error[E0019]: static contains unimplemented expression type
17 --> $DIR/check-static-values-constraints.rs:79:37
19 LL | static STATIC11: Box<MyOwned> = box MyOwned;
22 error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
23 --> $DIR/check-static-values-constraints.rs:90:32
25 LL | field2: SafeEnum::Variant4("str".to_string())
28 error[E0010]: allocations are not allowed in statics
29 --> $DIR/check-static-values-constraints.rs:95:5
32 | ^^^^^^^^^^^ allocation not allowed in statics
34 error[E0019]: static contains unimplemented expression type
35 --> $DIR/check-static-values-constraints.rs:95:9
40 error[E0010]: allocations are not allowed in statics
41 --> $DIR/check-static-values-constraints.rs:97:5
44 | ^^^^^^^^^^^ allocation not allowed in statics
46 error[E0019]: static contains unimplemented expression type
47 --> $DIR/check-static-values-constraints.rs:97:9
52 error[E0010]: allocations are not allowed in statics
53 --> $DIR/check-static-values-constraints.rs:102:6
56 | ^^^^^^^^^^^ allocation not allowed in statics
58 error[E0019]: static contains unimplemented expression type
59 --> $DIR/check-static-values-constraints.rs:102:10
64 error[E0010]: allocations are not allowed in statics
65 --> $DIR/check-static-values-constraints.rs:104:6
68 | ^^^^^^^^^^^ allocation not allowed in statics
70 error[E0019]: static contains unimplemented expression type
71 --> $DIR/check-static-values-constraints.rs:104:10
76 error[E0010]: allocations are not allowed in statics
77 --> $DIR/check-static-values-constraints.rs:111:5
80 | ^^^^^ allocation not allowed in statics
82 error[E0019]: static contains unimplemented expression type
83 --> $DIR/check-static-values-constraints.rs:111:9
88 error[E0507]: cannot move out of static item `x`
89 --> $DIR/check-static-values-constraints.rs:116:45
91 LL | let y = { static x: Box<isize> = box 3; x };
94 | move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
95 | help: consider borrowing here: `&x`
97 error[E0010]: allocations are not allowed in statics
98 --> $DIR/check-static-values-constraints.rs:116:38
100 LL | let y = { static x: Box<isize> = box 3; x };
101 | ^^^^^ allocation not allowed in statics
103 error[E0019]: static contains unimplemented expression type
104 --> $DIR/check-static-values-constraints.rs:116:42
106 LL | let y = { static x: Box<isize> = box 3; x };
109 error: aborting due to 17 previous errors
111 Some errors have detailed explanations: E0010, E0015, E0019, E0493, E0507.
112 For more information about an error, try `rustc --explain E0010`.