2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `WithDtor` cannot be evaluated at compile-time
|
2021-05-07 16:56:16 +00:00
|
|
|
--> $DIR/static-drop-scope.rs:7:60
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
|
2020-06-20 20:38:57 +00:00
|
|
|
| ^^^^^^^^- value is dropped here
|
|
|
|
| |
|
2022-09-23 14:22:36 +00:00
|
|
|
| the destructor for this type cannot be evaluated in statics
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `WithDtor` cannot be evaluated at compile-time
|
2024-02-01 22:42:36 +00:00
|
|
|
--> $DIR/static-drop-scope.rs:10:59
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
|
2020-06-20 20:38:57 +00:00
|
|
|
| ^^^^^^^^- value is dropped here
|
|
|
|
| |
|
2022-09-23 14:22:36 +00:00
|
|
|
| the destructor for this type cannot be evaluated in constants
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `(WithDtor, i32)` cannot be evaluated at compile-time
|
2024-02-01 22:42:36 +00:00
|
|
|
--> $DIR/static-drop-scope.rs:13:28
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | static EARLY_DROP_S: i32 = (WithDtor, 0).1;
|
2020-06-20 20:38:57 +00:00
|
|
|
| ^^^^^^^^^^^^^ - value is dropped here
|
|
|
|
| |
|
2022-09-23 14:22:36 +00:00
|
|
|
| the destructor for this type cannot be evaluated in statics
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `(WithDtor, i32)` cannot be evaluated at compile-time
|
2024-02-01 22:42:36 +00:00
|
|
|
--> $DIR/static-drop-scope.rs:16:27
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | const EARLY_DROP_C: i32 = (WithDtor, 0).1;
|
2020-06-20 20:38:57 +00:00
|
|
|
| ^^^^^^^^^^^^^ - value is dropped here
|
|
|
|
| |
|
2022-09-23 14:22:36 +00:00
|
|
|
| the destructor for this type cannot be evaluated in constants
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2024-02-14 12:28:07 +00:00
|
|
|
error[E0493]: destructor of `(Option<WithDtor>, i32)` cannot be evaluated at compile-time
|
|
|
|
--> $DIR/static-drop-scope.rs:27:34
|
|
|
|
|
|
|
|
|
LL | const EARLY_DROP_C_OPTION: i32 = (Some(WithDtor), 0).1;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ - value is dropped here
|
|
|
|
| |
|
|
|
|
| the destructor for this type cannot be evaluated in constants
|
|
|
|
|
|
|
|
error[E0493]: destructor of `(Option<WithDtor>, i32)` cannot be evaluated at compile-time
|
|
|
|
--> $DIR/static-drop-scope.rs:32:43
|
|
|
|
|
|
|
|
|
LL | const EARLY_DROP_C_OPTION_CONSTANT: i32 = (HELPER, 0).1;
|
|
|
|
| ^^^^^^^^^^^ - value is dropped here
|
|
|
|
| |
|
|
|
|
| the destructor for this type cannot be evaluated in constants
|
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `T` cannot be evaluated at compile-time
|
2024-02-01 22:42:36 +00:00
|
|
|
--> $DIR/static-drop-scope.rs:19:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | const fn const_drop<T>(_: T) {}
|
2020-06-20 20:38:57 +00:00
|
|
|
| ^ - value is dropped here
|
|
|
|
| |
|
2022-09-23 14:22:36 +00:00
|
|
|
| the destructor for this type cannot be evaluated in constant functions
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `(T, ())` cannot be evaluated at compile-time
|
2024-02-01 22:42:36 +00:00
|
|
|
--> $DIR/static-drop-scope.rs:23:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | (x, ()).1
|
2022-09-23 14:22:36 +00:00
|
|
|
| ^^^^^^^ the destructor for this type cannot be evaluated in constant functions
|
2020-06-20 20:38:57 +00:00
|
|
|
LL |
|
|
|
|
LL | }
|
|
|
|
| - value is dropped here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2024-02-01 22:42:36 +00:00
|
|
|
error: aborting due to 8 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2024-02-01 22:42:36 +00:00
|
|
|
For more information about this error, try `rustc --explain E0493`.
|