]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/min_const_fn/allow_const_fn_ptr.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / allow_const_fn_ptr.stderr
CommitLineData
1b1a35ee
XL
1error: const-stable function cannot use `#[feature(const_fn_fn_ptr_basics)]`
2 --> $DIR/allow_const_fn_ptr.rs:6:16
48663c56
XL
3 |
4LL | const fn error(_: fn()) {}
5 | ^
6 |
1b1a35ee
XL
7help: if it is not part of the public API, make this function unstably const
8 |
9LL | #[rustc_const_unstable(feature = "...", issue = "...")]
10 |
29967ef6 11help: otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks
1b1a35ee 12 |
29967ef6 13LL | #[rustc_allow_const_fn_unstable(const_fn_fn_ptr_basics)]
1b1a35ee 14 |
48663c56
XL
15
16error: aborting due to previous error
17