rust/src/test/ui/issues/issue-47703-1.rs
2019-07-03 06:30:28 +09:00

24 lines
379 B
Rust

// build-pass (FIXME(62277): could be 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() {}