]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/staged-api.unstable.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / rfc-2632-const-trait-impl / staged-api.unstable.stderr
1 error: `<Foo as staged_api::MyTrait>::func` is not yet stable as a const fn
2   --> $DIR/staged-api.rs:35:5
3    |
4 LL |     Foo::func();
5    |     ^^^^^^^^^^^
6    |
7    = help: add `#![feature(foo)]` to the crate attributes to enable
8
9 error: `<Foo as staged_api::MyTrait>::func` is not yet stable as a const fn
10   --> $DIR/staged-api.rs:47:5
11    |
12 LL |     Foo::func();
13    |     ^^^^^^^^^^^
14    |
15    = help: add `#![feature(foo)]` to the crate attributes to enable
16
17 error: `<staged_api::Unstable as staged_api::MyTrait>::func` is not yet stable as a const fn
18   --> $DIR/staged-api.rs:55:5
19    |
20 LL |     Unstable::func();
21    |     ^^^^^^^^^^^^^^^^
22    |
23    = help: const-stable functions can only call other const-stable functions
24
25 error: `<Foo as staged_api::MyTrait>::func` is not yet stable as a const fn
26   --> $DIR/staged-api.rs:57:5
27    |
28 LL |     Foo::func();
29    |     ^^^^^^^^^^^
30    |
31    = help: const-stable functions can only call other const-stable functions
32
33 error: `const_context_not_const_stable` is not yet stable as a const fn
34   --> $DIR/staged-api.rs:59:5
35    |
36 LL |     const_context_not_const_stable()
37    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38    |
39    = help: const-stable functions can only call other const-stable functions
40
41 error: aborting due to 5 previous errors
42