]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | error: trait methods cannot be stable const fn |
2 | --> $DIR/staged-api.rs:22:5 | |
3 | | | |
4 | LL | / fn func() { | |
5 | LL | | | |
6 | LL | | } | |
7 | | |_____^ | |
8 | ||
9 | error: `<staged_api::Unstable as staged_api::MyTrait>::func` is not yet stable as a const fn | |
10 | --> $DIR/staged-api.rs:34:5 | |
11 | | | |
12 | LL | Unstable::func(); | |
13 | | ^^^^^^^^^^^^^^^^ | |
14 | | | |
15 | = help: add `#![feature(staged)]` to the crate attributes to enable | |
16 | ||
17 | error: aborting due to 2 previous errors | |
18 |