about summary refs log tree commit diff
path: root/src/test/ui/consts/control-flow/assert.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/control-flow/assert.rs')
-rw-r--r--src/test/ui/consts/control-flow/assert.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/test/ui/consts/control-flow/assert.rs b/src/test/ui/consts/control-flow/assert.rs
index 2da42d5084b..30cd31ee8a7 100644
--- a/src/test/ui/consts/control-flow/assert.rs
+++ b/src/test/ui/consts/control-flow/assert.rs
@@ -1,17 +1,14 @@
-// Test that `assert` works only when both `const_if_match` and `const_panic` are enabled.
+// Test that `assert` works when `const_panic` is enabled.
 
-// revisions: stock if_match panic both
+// revisions: stock panic
 
-#![cfg_attr(any(both, if_match), feature(const_if_match))]
-#![cfg_attr(any(both, panic), feature(const_panic))]
+#![cfg_attr(panic, feature(const_panic))]
 
 const _: () = assert!(true);
-//[stock,panic]~^ ERROR `if` is not allowed in a `const`
-//[if_match]~^^ ERROR panicking in constants is unstable
+//[stock]~^ ERROR panicking in constants is unstable
 
 const _: () = assert!(false);
-//[stock,panic]~^ ERROR `if` is not allowed in a `const`
-//[if_match]~^^ ERROR panicking in constants is unstable
-//[both]~^^^ ERROR any use of this value will cause an error
+//[stock]~^ ERROR panicking in constants is unstable
+//[panic]~^^ ERROR any use of this value will cause an error
 
 fn main() {}