rust/src/test/ui/consts/unstable-const-fn-in-libcore.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
817 B
Plaintext
Raw Normal View History

2019-12-05 08:02:41 -06:00
error[E0493]: destructors cannot be evaluated at compile-time
2022-09-17 08:31:04 -05:00
--> $DIR/unstable-const-fn-in-libcore.rs:17:60
2019-12-05 08:02:41 -06:00
|
2022-09-17 08:31:04 -05:00
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
| ^ constant functions cannot evaluate destructors
2020-06-20 15:38:57 -05:00
...
LL | }
| - value is dropped here
2019-12-05 08:02:41 -06:00
error[E0493]: destructors cannot be evaluated at compile-time
2022-09-17 08:31:04 -05:00
--> $DIR/unstable-const-fn-in-libcore.rs:17:54
2019-12-05 08:02:41 -06:00
|
2022-09-17 08:31:04 -05:00
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
| ^^^^ constant functions cannot evaluate destructors
2020-06-20 15:38:57 -05:00
...
LL | }
| - value is dropped here
2019-12-05 08:02:41 -06:00
2022-09-17 08:31:04 -05:00
error: aborting due to 2 previous errors
2019-12-05 08:02:41 -06:00
2022-09-17 08:31:04 -05:00
For more information about this error, try `rustc --explain E0493`.