]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0493]: destructors cannot be evaluated at compile-time |
0731742a | 2 | --> $DIR/check-static-values-constraints.rs:65:43 |
b7449926 XL |
3 | | |
4 | LL | ..SafeStruct{field1: SafeEnum::Variant3(WithDtor), | |
5 | | ___________________________________________^ | |
6 | LL | | //~^ ERROR destructors cannot be evaluated at compile-time | |
7 | LL | | field2: SafeEnum::Variant1}}; | |
8 | | |________________________________________________________________________________^ statics cannot evaluate destructors | |
9 | ||
10 | error[E0010]: allocations are not allowed in statics | |
0731742a | 11 | --> $DIR/check-static-values-constraints.rs:79:33 |
b7449926 XL |
12 | | |
13 | LL | static STATIC11: Box<MyOwned> = box MyOwned; | |
14 | | ^^^^^^^^^^^ allocation not allowed in statics | |
15 | ||
0731742a XL |
16 | error[E0019]: static contains unimplemented expression type |
17 | --> $DIR/check-static-values-constraints.rs:79:37 | |
18 | | | |
19 | LL | static STATIC11: Box<MyOwned> = box MyOwned; | |
20 | | ^^^^^^^ | |
21 | ||
b7449926 | 22 | error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants |
0731742a | 23 | --> $DIR/check-static-values-constraints.rs:90:32 |
b7449926 XL |
24 | | |
25 | LL | field2: SafeEnum::Variant4("str".to_string()) | |
26 | | ^^^^^^^^^^^^^^^^^ | |
27 | ||
28 | error[E0010]: allocations are not allowed in statics | |
0731742a | 29 | --> $DIR/check-static-values-constraints.rs:95:5 |
b7449926 XL |
30 | | |
31 | LL | box MyOwned, //~ ERROR allocations are not allowed in statics | |
32 | | ^^^^^^^^^^^ allocation not allowed in statics | |
33 | ||
0731742a XL |
34 | error[E0019]: static contains unimplemented expression type |
35 | --> $DIR/check-static-values-constraints.rs:95:9 | |
36 | | | |
37 | LL | box MyOwned, //~ ERROR allocations are not allowed in statics | |
38 | | ^^^^^^^ | |
39 | ||
b7449926 | 40 | error[E0010]: allocations are not allowed in statics |
0731742a | 41 | --> $DIR/check-static-values-constraints.rs:97:5 |
b7449926 XL |
42 | | |
43 | LL | box MyOwned, //~ ERROR allocations are not allowed in statics | |
44 | | ^^^^^^^^^^^ allocation not allowed in statics | |
45 | ||
0731742a XL |
46 | error[E0019]: static contains unimplemented expression type |
47 | --> $DIR/check-static-values-constraints.rs:97:9 | |
48 | | | |
49 | LL | box MyOwned, //~ ERROR allocations are not allowed in statics | |
50 | | ^^^^^^^ | |
51 | ||
b7449926 | 52 | error[E0010]: allocations are not allowed in statics |
0731742a | 53 | --> $DIR/check-static-values-constraints.rs:102:6 |
b7449926 XL |
54 | | |
55 | LL | &box MyOwned, //~ ERROR allocations are not allowed in statics | |
56 | | ^^^^^^^^^^^ allocation not allowed in statics | |
57 | ||
0731742a XL |
58 | error[E0019]: static contains unimplemented expression type |
59 | --> $DIR/check-static-values-constraints.rs:102:10 | |
60 | | | |
61 | LL | &box MyOwned, //~ ERROR allocations are not allowed in statics | |
62 | | ^^^^^^^ | |
63 | ||
b7449926 | 64 | error[E0010]: allocations are not allowed in statics |
0731742a | 65 | --> $DIR/check-static-values-constraints.rs:104:6 |
b7449926 XL |
66 | | |
67 | LL | &box MyOwned, //~ ERROR allocations are not allowed in statics | |
68 | | ^^^^^^^^^^^ allocation not allowed in statics | |
69 | ||
0731742a XL |
70 | error[E0019]: static contains unimplemented expression type |
71 | --> $DIR/check-static-values-constraints.rs:104:10 | |
72 | | | |
73 | LL | &box MyOwned, //~ ERROR allocations are not allowed in statics | |
74 | | ^^^^^^^ | |
75 | ||
b7449926 | 76 | error[E0010]: allocations are not allowed in statics |
0731742a | 77 | --> $DIR/check-static-values-constraints.rs:111:5 |
b7449926 XL |
78 | | |
79 | LL | box 3; | |
80 | | ^^^^^ allocation not allowed in statics | |
81 | ||
0731742a XL |
82 | error[E0019]: static contains unimplemented expression type |
83 | --> $DIR/check-static-values-constraints.rs:111:9 | |
84 | | | |
85 | LL | box 3; | |
86 | | ^ | |
87 | ||
b7449926 | 88 | error[E0507]: cannot move out of static item |
0731742a | 89 | --> $DIR/check-static-values-constraints.rs:116:45 |
b7449926 XL |
90 | | |
91 | LL | let y = { static x: Box<isize> = box 3; x }; | |
92 | | ^ cannot move out of static item | |
93 | ||
94 | error[E0010]: allocations are not allowed in statics | |
0731742a | 95 | --> $DIR/check-static-values-constraints.rs:116:38 |
b7449926 XL |
96 | | |
97 | LL | let y = { static x: Box<isize> = box 3; x }; | |
98 | | ^^^^^ allocation not allowed in statics | |
99 | ||
0731742a XL |
100 | error[E0019]: static contains unimplemented expression type |
101 | --> $DIR/check-static-values-constraints.rs:116:42 | |
102 | | | |
103 | LL | let y = { static x: Box<isize> = box 3; x }; | |
104 | | ^ | |
105 | ||
106 | error: aborting due to 17 previous errors | |
b7449926 | 107 | |
0731742a | 108 | Some errors occurred: E0010, E0015, E0019, E0493, E0507. |
b7449926 | 109 | For more information about an error, try `rustc --explain E0010`. |