qadapt/tests/unused_panic.rs

12 lines
200 B
Rust
Raw Normal View History

2018-12-06 23:02:44 -05:00
use qadapt::enter_protected;
#[test]
#[should_panic]
fn guard_without_initialization() {
2018-12-06 23:22:30 -05:00
if cfg!(debug_assertions) {
enter_protected();
} else {
panic!("Intentional")
}
2018-12-06 23:14:56 -05:00
}