2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `String` cannot be evaluated at compile-time
|
2021-12-21 18:00:00 -06:00
|
|
|
--> $DIR/drop-elaboration-after-borrowck-error.rs:7:5
|
|
|
|
|
|
|
|
|
LL | a[0] = String::new();
|
|
|
|
| ^^^^
|
|
|
|
| |
|
2022-09-23 09:22:36 -05:00
|
|
|
| the destructor for this type cannot be evaluated in statics
|
2021-12-21 18:00:00 -06:00
|
|
|
| value is dropped here
|
|
|
|
|
2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `[String; 1]` cannot be evaluated at compile-time
|
2021-12-21 18:00:00 -06:00
|
|
|
--> $DIR/drop-elaboration-after-borrowck-error.rs:5:9
|
|
|
|
|
|
|
|
|
LL | let a: [String; 1];
|
2022-09-23 09:22:36 -05:00
|
|
|
| ^ the destructor for this type cannot be evaluated in statics
|
2021-12-21 18:00:00 -06:00
|
|
|
...
|
|
|
|
LL | };
|
|
|
|
| - value is dropped here
|
|
|
|
|
2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `T` cannot be evaluated at compile-time
|
2024-02-01 16:42:36 -06:00
|
|
|
--> $DIR/drop-elaboration-after-borrowck-error.rs:17:9
|
2021-12-21 18:00:00 -06:00
|
|
|
|
|
|
|
|
LL | self.0[0] = other;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
2022-09-23 09:22:36 -05:00
|
|
|
| the destructor for this type cannot be evaluated in constant functions
|
2021-12-21 18:00:00 -06:00
|
|
|
| value is dropped here
|
|
|
|
|
2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `B<T>` cannot be evaluated at compile-time
|
2024-02-01 16:42:36 -06:00
|
|
|
--> $DIR/drop-elaboration-after-borrowck-error.rs:15:13
|
2021-12-21 18:00:00 -06:00
|
|
|
|
|
|
|
|
LL | let _this = self;
|
2022-09-23 09:22:36 -05:00
|
|
|
| ^^^^^ the destructor for this type cannot be evaluated in constant functions
|
2021-12-21 18:00:00 -06:00
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - value is dropped here
|
|
|
|
|
2024-02-01 16:42:36 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2021-12-21 18:00:00 -06:00
|
|
|
|
2024-02-01 16:42:36 -06:00
|
|
|
For more information about this error, try `rustc --explain E0493`.
|