summary refs log tree commit diff
path: root/tests/ui/contracts/contract-attributes-nest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/contracts/contract-attributes-nest.rs')
-rw-r--r--tests/ui/contracts/contract-attributes-nest.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/contracts/contract-attributes-nest.rs b/tests/ui/contracts/contract-attributes-nest.rs
index 1cda21f10d7..e1e61b88f28 100644
--- a/tests/ui/contracts/contract-attributes-nest.rs
+++ b/tests/ui/contracts/contract-attributes-nest.rs
@@ -16,7 +16,8 @@
 //@ [chk_fail_pre] compile-flags: -Zcontract-checks=yes
 //@ [chk_fail_post] compile-flags: -Zcontract-checks=yes
 
-#![feature(rustc_contracts)]
+#![feature(contracts)]
+//~^ WARN the feature `contracts` is incomplete and may not be safe to use and/or cause compiler crashes [incomplete_features]
 
 #[core::contracts::requires(x.baz > 0)]
 #[core::contracts::ensures(|ret| *ret > 100)]