mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
23 lines
343 B
Rust
23 lines
343 B
Rust
//@ check-pass
|
|
|
|
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() {}
|