2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `F` cannot be evaluated at compile-time
|
2022-09-17 08:31:04 -05:00
|
|
|
--> $DIR/unstable-const-fn-in-libcore.rs:17:60
|
2019-12-05 08:02:41 -06:00
|
|
|
|
|
2022-09-17 08:31:04 -05:00
|
|
|
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
|
2022-09-23 09:22:36 -05:00
|
|
|
| ^ the destructor for this type cannot be evaluated in constant functions
|
2020-06-20 15:38:57 -05:00
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - value is dropped here
|
2019-12-05 08:02:41 -06:00
|
|
|
|
2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `Opt<T>` cannot be evaluated at compile-time
|
2022-09-17 08:31:04 -05:00
|
|
|
--> $DIR/unstable-const-fn-in-libcore.rs:17:54
|
2019-12-05 08:02:41 -06:00
|
|
|
|
|
2022-09-17 08:31:04 -05:00
|
|
|
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
|
2022-09-23 09:22:36 -05:00
|
|
|
| ^^^^ the destructor for this type cannot be evaluated in constant functions
|
2020-06-20 15:38:57 -05:00
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - value is dropped here
|
2019-12-05 08:02:41 -06:00
|
|
|
|
2022-09-17 08:31:04 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2019-12-05 08:02:41 -06:00
|
|
|
|
2022-09-17 08:31:04 -05:00
|
|
|
For more information about this error, try `rustc --explain E0493`.
|