mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00
Mark min_const_fn_fn_ptr
test as gate test
This commit is contained in:
parent
54d3329c95
commit
368502cc1d
@ -1,3 +1,5 @@
|
||||
// gate-test-const_fn_fn_ptr_basics
|
||||
|
||||
struct HasPtr {
|
||||
field: fn(),
|
||||
}
|
||||
|
@ -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;
|
||||
= help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: function pointers cannot appear in constant functions
|
||||
--> $DIR/min_const_fn_fn_ptr.rs:14:59
|
||||
--> $DIR/min_const_fn_fn_ptr.rs:16:59
|
||||
|
|
||||
LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasPtr { field }) }
|
||||
| ^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user