rust/tests/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.

9 lines
293 B
Plaintext
Raw Normal View History

error: `~const` can only be applied to `#[const_trait]` traits
2023-08-13 09:02:31 +00:00
--> $DIR/unstable-const-fn-in-libcore.rs:19:39
2019-12-05 14:02:41 +00:00
|
2022-09-17 13:31:04 +00:00
LL | const fn unwrap_or_else<F: ~const FnOnce() -> T>(self, f: F) -> T {
2023-08-13 09:02:31 +00:00
| ^^^^^^^^^^^^^
2019-12-05 14:02:41 +00:00
error: aborting due to 1 previous error
2019-12-05 14:02:41 +00:00