rust/src/test/ui/check-static-values-constraints.stderr

110 lines
4.2 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0493]: destructors cannot be evaluated at compile-time
2018-12-25 15:56:47 +00:00
--> $DIR/check-static-values-constraints.rs:65:43
2018-08-08 12:28:26 +00:00
|
LL | ..SafeStruct{field1: SafeEnum::Variant3(WithDtor),
| ___________________________________________^
LL | | //~^ ERROR destructors cannot be evaluated at compile-time
LL | | field2: SafeEnum::Variant1}};
| |________________________________________________________________________________^ statics cannot evaluate destructors
error[E0010]: allocations are not allowed in statics
2018-12-25 15:56:47 +00:00
--> $DIR/check-static-values-constraints.rs:79:33
2018-08-08 12:28:26 +00:00
|
LL | static STATIC11: Box<MyOwned> = box MyOwned;
| ^^^^^^^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:79:37
|
LL | static STATIC11: Box<MyOwned> = box MyOwned;
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
--> $DIR/check-static-values-constraints.rs:90:32
2018-08-08 12:28:26 +00:00
|
LL | field2: SafeEnum::Variant4("str".to_string())
| ^^^^^^^^^^^^^^^^^
error[E0010]: allocations are not allowed in statics
--> $DIR/check-static-values-constraints.rs:95:5
2018-08-08 12:28:26 +00:00
|
LL | box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:95:9
|
LL | box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0010]: allocations are not allowed in statics
--> $DIR/check-static-values-constraints.rs:97:5
2018-08-08 12:28:26 +00:00
|
LL | box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:97:9
|
LL | box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0010]: allocations are not allowed in statics
--> $DIR/check-static-values-constraints.rs:102:6
2018-08-08 12:28:26 +00:00
|
LL | &box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:102:10
|
LL | &box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0010]: allocations are not allowed in statics
--> $DIR/check-static-values-constraints.rs:104:6
2018-08-08 12:28:26 +00:00
|
LL | &box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:104:10
|
LL | &box MyOwned, //~ ERROR allocations are not allowed in statics
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0010]: allocations are not allowed in statics
--> $DIR/check-static-values-constraints.rs:111:5
2018-08-08 12:28:26 +00:00
|
LL | box 3;
| ^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:111:9
|
LL | box 3;
| ^
2018-08-08 12:28:26 +00:00
error[E0507]: cannot move out of static item
--> $DIR/check-static-values-constraints.rs:116:45
2018-08-08 12:28:26 +00:00
|
LL | let y = { static x: Box<isize> = box 3; x };
| ^ cannot move out of static item
error[E0010]: allocations are not allowed in statics
--> $DIR/check-static-values-constraints.rs:116:38
2018-08-08 12:28:26 +00:00
|
LL | let y = { static x: Box<isize> = box 3; x };
| ^^^^^ allocation not allowed in statics
error[E0019]: static contains unimplemented expression type
--> $DIR/check-static-values-constraints.rs:116:42
|
LL | let y = { static x: Box<isize> = box 3; x };
| ^
error: aborting due to 17 previous errors
2018-08-08 12:28:26 +00:00
Some errors occurred: E0010, E0015, E0019, E0493, E0507.
2018-08-08 12:28:26 +00:00
For more information about an error, try `rustc --explain E0010`.