2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `F` cannot be evaluated at compile-time
|
2022-09-17 13:31:04 +00:00
|
|
|
--> $DIR/unstable-const-fn-in-libcore.rs:17:60
|
2019-12-05 14:02:41 +00:00
|
|
|
|
|
2022-09-17 13:31:04 +00:00
|
|
|
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
|
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 | }
|
|
|
|
| - value is dropped here
|
2019-12-05 14:02:41 +00:00
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `Opt<T>` cannot be evaluated at compile-time
|
2022-09-17 13:31:04 +00:00
|
|
|
--> $DIR/unstable-const-fn-in-libcore.rs:17:54
|
2019-12-05 14:02:41 +00:00
|
|
|
|
|
2022-09-17 13:31:04 +00:00
|
|
|
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
|
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 | }
|
|
|
|
| - value is dropped here
|
2019-12-05 14:02:41 +00:00
|
|
|
|
2022-09-17 13:31:04 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2019-12-05 14:02:41 +00:00
|
|
|
|
2022-09-17 13:31:04 +00:00
|
|
|
For more information about this error, try `rustc --explain E0493`.
|