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