UEO5OKN446XCE2FHS6GFXYYL2D3YNJD6NI6QLMWO2QZAZKUCL2XQC
WJWASFHAXBNMWHEXMKR53FLXPVUFVT44F2WKSJSA57V2UOZVSOJQC
mod drop;
use self::drop::DetectDrop;use anyhow::Error;
use self::drop::DetectDrop;
use anyhow::Error;
use std::sync::atomic::AtomicBool;use std::sync::atomic::Ordering::SeqCst;use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering::SeqCst;
use std::sync::Arc;
}#[test]fn test_drop() { let has_dropped = Arc::new(AtomicBool::new(false)); let error = Error::new(DetectDrop::new(&has_dropped)); drop(error.downcast::<DetectDrop>().unwrap()); assert!(has_dropped.load(SeqCst));
}
#[test]
fn test_drop() {
let has_dropped = Arc::new(AtomicBool::new(false));
let error = Error::new(DetectDrop::new(&has_dropped));
drop(error.downcast::<DetectDrop>().unwrap());
assert!(has_dropped.load(SeqCst));