]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/staged-api.stable.stderr
Auto merge of #105712 - amg98:feat/vita-support, r=wesleywiser
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / staged-api.stable.stderr
1 error: trait implementations cannot be const stable yet
2   --> $DIR/staged-api.rs:19:1
3    |
4 LL | / impl const MyTrait for Foo {
5 LL | |
6 LL | |     fn func() {}
7 LL | | }
8    | |_^
9    |
10    = note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
11
12 error: function has missing const stability attribute
13   --> $DIR/staged-api.rs:42:1
14    |
15 LL | / pub const fn const_context_not_const_stable() {
16 LL | |
17 LL | |     Unstable::func();
18 LL | |     // ^ This is okay regardless of whether the `unstable` feature is enabled, as this function is
19 ...  |
20 LL | |     // ^ fails, because the `foo` feature is not active
21 LL | | }
22    | |_^
23
24 error: aborting due to 2 previous errors
25