]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | // check-pass |
2c00a5a8 | 2 | |
0531ce1d XL |
3 | struct AtomicRefMut<'a> { |
4 | value: &'a mut i32, | |
5 | borrow: AtomicBorrowRefMut, | |
6 | } | |
7 | ||
8 | struct AtomicBorrowRefMut { | |
9 | } | |
223e47cc | 10 | |
0531ce1d XL |
11 | impl Drop for AtomicBorrowRefMut { |
12 | fn drop(&mut self) { | |
13 | } | |
223e47cc | 14 | } |
0531ce1d XL |
15 | |
16 | fn map(orig: AtomicRefMut) -> AtomicRefMut { | |
17 | AtomicRefMut { | |
18 | value: orig.value, | |
19 | borrow: orig.borrow, | |
20 | } | |
21 | } | |
22 | ||
23 | fn main() {} |