diff --git a/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_feature_gate.rs b/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_feature_gate.rs deleted file mode 100644 index 5e6c0a33205..00000000000 --- a/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_feature_gate.rs +++ /dev/null @@ -1,14 +0,0 @@ -#![feature(staged_api)] - -#[stable(feature = "rust1", since = "1.0.0")] -const fn error(_: fn()) {} -//~^ ERROR `rustc_const_stable` or `rustc_const_unstable` -//~| ERROR `rustc_const_stable` or `rustc_const_unstable` -//~| ERROR function pointers - -#[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_stable(since="1.0.0", feature = "mep")] -const fn compiles(_: fn()) {} -//~^ ERROR function pointers - -fn main() {} diff --git a/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_feature_gate.stderr b/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_feature_gate.stderr deleted file mode 100644 index 23e31c80c43..00000000000 --- a/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_feature_gate.stderr +++ /dev/null @@ -1,33 +0,0 @@ -error: stable const functions must have either `rustc_const_stable` or `rustc_const_unstable` attribute - --> $DIR/allow_const_fn_ptr_feature_gate.rs:4:1 - | -LL | const fn error(_: fn()) {} - | ^^^^^^^^^^^^^^^^^^^^^^^ - -error: stable const functions must have either `rustc_const_stable` or `rustc_const_unstable` attribute - --> $DIR/allow_const_fn_ptr_feature_gate.rs:4:1 - | -LL | const fn error(_: fn()) {} - | ^^^^^^^^^^^^^^^^^^^^^^^ - -error[E0658]: function pointers cannot appear in constant functions - --> $DIR/allow_const_fn_ptr_feature_gate.rs:4:16 - | -LL | const fn error(_: fn()) {} - | ^ - | - = note: see issue #57563 for more information - = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable - -error[E0658]: function pointers cannot appear in constant functions - --> $DIR/allow_const_fn_ptr_feature_gate.rs:11:19 - | -LL | const fn compiles(_: fn()) {} - | ^ - | - = note: see issue #57563 for more information - = help: add `#![feature(const_fn_fn_ptr_basics)]` to the crate attributes to enable - -error: aborting due to 4 previous errors - -For more information about this error, try `rustc --explain E0658`.