]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/allow_const_fn_ptr.stderr
Tweak move error
[rust.git] / src / test / ui / consts / min_const_fn / allow_const_fn_ptr.stderr
1 error: const-stable function cannot use `#[feature(const_fn_fn_ptr_basics)]`
2   --> $DIR/allow_const_fn_ptr.rs:6:16
3    |
4 LL | const fn error(_: fn()) {}
5    |                ^
6    |
7 help: if it is not part of the public API, make this function unstably const
8    |
9 LL | #[rustc_const_unstable(feature = "...", issue = "...")]
10    |
11 help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks
12    |
13 LL | #[rustc_allow_const_fn_unstable(const_fn_fn_ptr_basics)]
14    |
15
16 error: aborting due to previous error
17