]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-47703-1.rs
Rollup merge of #56044 - matthewjasper:function-param-drop-order, r=cramertj
[rust.git] / src / test / ui / issues / issue-47703-1.rs
1 // compile-pass
2 #![allow(dead_code)]
3 #![feature(nll)]
4
5 struct AtomicRefMut<'a> {
6     value: &'a mut i32,
7     borrow: AtomicBorrowRefMut,
8 }
9
10 struct AtomicBorrowRefMut {
11 }
12
13 impl Drop for AtomicBorrowRefMut {
14     fn drop(&mut self) {
15     }
16 }
17
18 fn map(orig: AtomicRefMut) -> AtomicRefMut {
19     AtomicRefMut {
20         value: orig.value,
21         borrow: orig.borrow,
22     }
23 }
24
25 fn main() {}