]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/unstable-const-fn-in-libcore.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / unstable-const-fn-in-libcore.stderr
1 error[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 |
4 LL | Opt::None => f(),
5 | ^^^
6
7 error[E0493]: destructors cannot be evaluated at compile-time
8 --> $DIR/unstable-const-fn-in-libcore.rs:19:53
9 |
10 LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
11 | ^ constant functions cannot evaluate destructors
12 ...
13 LL | }
14 | - value is dropped here
15
16 error[E0493]: destructors cannot be evaluated at compile-time
17 --> $DIR/unstable-const-fn-in-libcore.rs:19:47
18 |
19 LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
20 | ^^^^ constant functions cannot evaluate destructors
21 ...
22 LL | }
23 | - value is dropped here
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`.