2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-01-27 14:15:18 -06:00
|
|
|
|
|
|
|
struct AtomicRefMut<'a> {
|
|
|
|
value: &'a mut i32,
|
|
|
|
borrow: AtomicBorrowRefMut,
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AtomicBorrowRefMut {
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Drop for AtomicBorrowRefMut {
|
|
|
|
fn drop(&mut self) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn map(orig: AtomicRefMut) -> AtomicRefMut {
|
|
|
|
AtomicRefMut {
|
|
|
|
value: orig.value,
|
|
|
|
borrow: orig.borrow,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|