Files
rust/tests/ui/feature-gates/feature-gate-cfg-contract-checks.rs
Felix S. Klock II bcb8565f30 Contracts core intrinsics.
These are hooks to:

  1. control whether contract checks are run
  2. allow 3rd party tools to intercept and reintepret the results of running contracts.
2025-02-03 12:53:57 -08:00

6 lines
148 B
Rust

#![crate_type = "lib"]
pub fn contract_checks_are_enabled() -> bool {
cfg!(contract_checks) //~ ERROR `cfg(contract_checks)` is experimental
}