1 error[E0015]: cannot call non-const closure in constant functions
2 --> $DIR/unstable-const-fn-in-libcore.rs:24:26
7 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
8 help: consider further restricting this bound
10 LL | const fn unwrap_or_else<F: FnOnce() -> T + ~const std::ops::FnOnce<()>>(self, f: F) -> T {
11 | +++++++++++++++++++++++++++++
13 error[E0493]: destructors cannot be evaluated at compile-time
14 --> $DIR/unstable-const-fn-in-libcore.rs:19:53
16 LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
17 | ^ constant functions cannot evaluate destructors
20 | - value is dropped here
22 error[E0493]: destructors cannot be evaluated at compile-time
23 --> $DIR/unstable-const-fn-in-libcore.rs:19:47
25 LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
26 | ^^^^ constant functions cannot evaluate destructors
29 | - value is dropped here
31 error: aborting due to 3 previous errors
33 Some errors have detailed explanations: E0015, E0493.
34 For more information about an error, try `rustc --explain E0015`.