Skip to content

Commit

Permalink
Mark min_const_fn_fn_ptr test as gate test
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Sep 27, 2020
1 parent 50fb9f1 commit 16f36db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/consts/min_const_fn/min_const_fn_fn_ptr.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// gate-test-const_fn_fn_ptr_basics

struct HasPtr {
field: fn(),
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/consts/min_const_fn/min_const_fn_fn_ptr.stderr
Original file line number Diff line number Diff line change
@@ -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;
| ^^^^^^^^^
Expand All @@ -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 }) }
| ^^^^^
Expand Down

0 comments on commit 16f36db

Please sign in to comment.