mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 19:14:16 +00:00
24 lines
342 B
Rust
24 lines
342 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() {}
|