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