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
|
|
|
}
|