]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/staged-api.stock.stderr
New upstream version 1.55.0+dfsg1
[rustc.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