File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/test/ui/consts/min_const_fn Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ // gate-test-const_fn_fn_ptr_basics
2+
13struct HasPtr {
24 field : fn ( ) ,
35}
Original file line number Diff line number Diff line change 11error[E0658]: function pointers cannot appear in constant functions
2- --> $DIR/min_const_fn_fn_ptr.rs:11 :5
2+ --> $DIR/min_const_fn_fn_ptr.rs:13 :5
33 |
44LL | x.0.field;
55 | ^^^^^^^^^
@@ -8,7 +8,7 @@ LL | x.0.field;
88 = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable
99
1010error[E0658]: function pointers cannot appear in constant functions
11- --> $DIR/min_const_fn_fn_ptr.rs:14 :59
11+ --> $DIR/min_const_fn_fn_ptr.rs:16 :59
1212 |
1313LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasPtr { field }) }
1414 | ^^^^^
You can’t perform that action at this time.
0 commit comments