]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | error: const-stable function cannot use `#[feature(const_fn_fn_ptr_basics)]` |
2 | --> $DIR/allow_const_fn_ptr.rs:6:16 | |
48663c56 XL |
3 | | |
4 | LL | const fn error(_: fn()) {} | |
5 | | ^ | |
6 | | | |
1b1a35ee XL |
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 | | | |
29967ef6 | 11 | help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks |
1b1a35ee | 12 | | |
29967ef6 | 13 | LL | #[rustc_allow_const_fn_unstable(const_fn_fn_ptr_basics)] |
1b1a35ee | 14 | | |
48663c56 XL |
15 | |
16 | error: aborting due to previous error | |
17 |