2018-08-08 07:28:26 -05:00
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:9:60
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
|
|
|
|
| ^^^^^^^^ statics cannot evaluate destructors
|
|
|
|
|
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:9:60
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
|
|
|
|
| ^^^^^^^^- temporary value only lives until here
|
|
|
|
| |
|
|
|
|
| temporary value does not live long enough
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:13:59
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
|
|
|
|
| ^^^^^^^^ constants cannot evaluate destructors
|
|
|
|
|
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:13:59
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
|
|
|
|
| ^^^^^^^^- temporary value only lives until here
|
|
|
|
| |
|
|
|
|
| temporary value does not live long enough
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:17:28
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static EARLY_DROP_S: i32 = (WithDtor, 0).1;
|
|
|
|
| ^^^^^^^^^^^^^ statics cannot evaluate destructors
|
|
|
|
|
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:20:27
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const EARLY_DROP_C: i32 = (WithDtor, 0).1;
|
|
|
|
| ^^^^^^^^^^^^^ constants cannot evaluate destructors
|
|
|
|
|
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:23:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const fn const_drop<T>(_: T) {}
|
|
|
|
| ^ constant functions cannot evaluate destructors
|
|
|
|
|
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/static-drop-scope.rs:27:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | (x, ()).1
|
|
|
|
| ^^^^^^^ constant functions cannot evaluate destructors
|
|
|
|
|
2019-01-23 09:21:33 -06:00
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
|
|
|
--> $DIR/static-drop-scope.rs:31:34
|
|
|
|
|
|
|
|
|
LL | const EARLY_DROP_C_OPTION: i32 = (Some(WithDtor), 0).1;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ constants cannot evaluate destructors
|
|
|
|
|
|
|
|
error[E0493]: destructors cannot be evaluated at compile-time
|
|
|
|
--> $DIR/static-drop-scope.rs:36:43
|
|
|
|
|
|
|
|
|
LL | const EARLY_DROP_C_OPTION_CONSTANT: i32 = (HELPER, 0).1;
|
|
|
|
| ^^^^^^^^^^^ constants cannot evaluate destructors
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|