mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
69 lines
3.2 KiB
Plaintext
69 lines
3.2 KiB
Plaintext
error[E0493]: destructor of `WithDtor` cannot be evaluated at compile-time
|
|
--> $DIR/static-drop-scope.rs:7:60
|
|
|
|
|
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
|
|
| ^^^^^^^^- value is dropped here
|
|
| |
|
|
| the destructor for this type cannot be evaluated in statics
|
|
|
|
error[E0493]: destructor of `WithDtor` cannot be evaluated at compile-time
|
|
--> $DIR/static-drop-scope.rs:10:59
|
|
|
|
|
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
|
|
| ^^^^^^^^- value is dropped here
|
|
| |
|
|
| the destructor for this type cannot be evaluated in constants
|
|
|
|
error[E0493]: destructor of `(WithDtor, i32)` cannot be evaluated at compile-time
|
|
--> $DIR/static-drop-scope.rs:13:28
|
|
|
|
|
LL | static EARLY_DROP_S: i32 = (WithDtor, 0).1;
|
|
| ^^^^^^^^^^^^^ - value is dropped here
|
|
| |
|
|
| the destructor for this type cannot be evaluated in statics
|
|
|
|
error[E0493]: destructor of `(WithDtor, i32)` cannot be evaluated at compile-time
|
|
--> $DIR/static-drop-scope.rs:16:27
|
|
|
|
|
LL | const EARLY_DROP_C: i32 = (WithDtor, 0).1;
|
|
| ^^^^^^^^^^^^^ - value is dropped here
|
|
| |
|
|
| the destructor for this type cannot be evaluated in constants
|
|
|
|
error[E0493]: destructor of `T` cannot be evaluated at compile-time
|
|
--> $DIR/static-drop-scope.rs:19:24
|
|
|
|
|
LL | const fn const_drop<T>(_: T) {}
|
|
| ^ - value is dropped here
|
|
| |
|
|
| the destructor for this type cannot be evaluated in constant functions
|
|
|
|
error[E0493]: destructor of `(T, ())` cannot be evaluated at compile-time
|
|
--> $DIR/static-drop-scope.rs:23:5
|
|
|
|
|
LL | (x, ()).1
|
|
| ^^^^^^^ the destructor for this type cannot be evaluated in constant functions
|
|
LL |
|
|
LL | }
|
|
| - value is dropped here
|
|
|
|
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
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0493`.
|