]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/min_const_fn/min_const_fn_fn_ptr.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / min_const_fn_fn_ptr.stderr
CommitLineData
1b1a35ee
XL
1error[E0658]: function pointers cannot appear in constant functions
2 --> $DIR/min_const_fn_fn_ptr.rs:13:5
b7449926
XL
3 |
4LL | x.0.field;
5 | ^^^^^^^^^
9fa01778 6 |
74b04a01 7 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
1b1a35ee 8 = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable
b7449926 9
1b1a35ee
XL
10error[E0658]: function pointer casts are not allowed in constant functions
11 --> $DIR/min_const_fn_fn_ptr.rs:16:59
b7449926
XL
12 |
13LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasPtr { field }) }
14 | ^^^^^
9fa01778 15 |
74b04a01 16 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
1b1a35ee 17 = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable
b7449926
XL
18
19error: aborting due to 2 previous errors
20
1b1a35ee 21For more information about this error, try `rustc --explain E0658`.