We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
min_const_fn_fn_ptr
1 parent 50fb9f1 commit 16f36dbCopy full SHA for 16f36db
src/test/ui/consts/min_const_fn/min_const_fn_fn_ptr.rs
@@ -1,3 +1,5 @@
1
+// gate-test-const_fn_fn_ptr_basics
2
+
3
struct HasPtr {
4
field: fn(),
5
}
src/test/ui/consts/min_const_fn/min_const_fn_fn_ptr.stderr
@@ -1,5 +1,5 @@
error[E0658]: function pointers cannot appear in constant functions
- --> $DIR/min_const_fn_fn_ptr.rs:11:5
+ --> $DIR/min_const_fn_fn_ptr.rs:13:5
|
LL | x.0.field;
| ^^^^^^^^^
@@ -8,7 +8,7 @@ LL | x.0.field;
8
= help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable
9
10
11
- --> $DIR/min_const_fn_fn_ptr.rs:14:59
+ --> $DIR/min_const_fn_fn_ptr.rs:16:59
12
13
LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasPtr { field }) }
14
| ^^^^^
0 commit comments