]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/staged-api.stock.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / staged-api.stock.stderr
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