4 // pretty-expanded FIXME #23616
6 use std::ops::{Deref, DerefMut};
8 // Generic unique/owned smaht pointer.
13 impl<T> Deref for Own<T> {
16 fn deref<'a>(&'a self) -> &'a T {
17 unsafe { &*self.value }
21 impl<T> DerefMut for Own<T> {
22 fn deref_mut<'a>(&'a mut self) -> &'a mut T {
23 unsafe { &mut *self.value }
33 fn get(&mut self) -> (isize, isize) {
38 fn test0(mut x: Own<Point>) {
42 fn test1(mut x: Own<Own<Own<Point>>>) {
46 fn test2(mut x: Own<Own<Own<Point>>>) {