]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-cfg-panic.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / feature-gates / feature-gate-cfg-panic.rs
1 #[cfg(panic = "unwind")]
2 //~^ ERROR `cfg(panic)` is experimental and subject to change
3 fn foo() -> bool { true }
4 #[cfg(not(panic = "unwind"))]
5 //~^ ERROR `cfg(panic)` is experimental and subject to change
6 fn foo() -> bool { false }
7
8
9 fn main() {
10     assert!(foo());
11 }