mirror of
https://github.com/bspeice/qadapt
synced 2024-11-14 10:08:08 -05:00
12 lines
200 B
Rust
12 lines
200 B
Rust
use qadapt::enter_protected;
|
|
|
|
#[test]
|
|
#[should_panic]
|
|
fn guard_without_initialization() {
|
|
if cfg!(debug_assertions) {
|
|
enter_protected();
|
|
} else {
|
|
panic!("Intentional")
|
|
}
|
|
}
|