We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1602a46 commit f68a254Copy full SHA for f68a254
std/src/sync/reentrant_lock/tests.rs
@@ -1,4 +1,4 @@
1
-use super::{ReentrantLock, ReentrantLockGuard};
+use super::ReentrantLock;
2
use crate::cell::RefCell;
3
use crate::sync::Arc;
4
use crate::thread;
@@ -51,10 +51,3 @@ fn trylock_works() {
51
.unwrap();
52
let _lock3 = l.try_lock();
53
}
54
-
55
-pub struct Answer<'a>(pub ReentrantLockGuard<'a, RefCell<u32>>);
56
-impl Drop for Answer<'_> {
57
- fn drop(&mut self) {
58
- *self.0.borrow_mut() = 42;
59
- }
60
-}
0 commit comments