]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants |
1b1a35ee | 2 | --> $DIR/unstable-const-fn-in-libcore.rs:24:26 |
60c5eb7d XL |
3 | | |
4 | LL | Opt::None => f(), | |
5 | | ^^^ | |
6 | ||
7 | error[E0493]: destructors cannot be evaluated at compile-time | |
1b1a35ee | 8 | --> $DIR/unstable-const-fn-in-libcore.rs:19:53 |
60c5eb7d XL |
9 | | |
10 | LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T { | |
11 | | ^ constant functions cannot evaluate destructors | |
f035d41b XL |
12 | ... |
13 | LL | } | |
14 | | - value is dropped here | |
60c5eb7d XL |
15 | |
16 | error[E0493]: destructors cannot be evaluated at compile-time | |
1b1a35ee | 17 | --> $DIR/unstable-const-fn-in-libcore.rs:19:47 |
60c5eb7d XL |
18 | | |
19 | LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T { | |
20 | | ^^^^ constant functions cannot evaluate destructors | |
f035d41b XL |
21 | ... |
22 | LL | } | |
23 | | - value is dropped here | |
60c5eb7d XL |
24 | |
25 | error: aborting due to 3 previous errors | |
26 | ||
27 | Some errors have detailed explanations: E0015, E0493. | |
28 | For more information about an error, try `rustc --explain E0015`. |