fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants 2 --> $DIR/unstable-const-fn-in-libcore.rs:24:26 3 | 4LL | Opt::None => f(), 5 | ^^^ 6 7error[E0493]: destructors cannot be evaluated at compile-time 8 --> $DIR/unstable-const-fn-in-libcore.rs:19:53 9 | 10LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T { 11 | ^ constant functions cannot evaluate destructors 12 13error[E0493]: destructors cannot be evaluated at compile-time 14 --> $DIR/unstable-const-fn-in-libcore.rs:19:47 15 | 16LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T { 17 | ^^^^ constant functions cannot evaluate destructors 18 19error: aborting due to 3 previous errors 20 21Some errors have detailed explanations: E0015, E0493. 22For more information about an error, try `rustc --explain E0015`.