5 struct Ptr<T: ?Sized>(Box<T>);
7 impl<T: ?Sized> Deref for Ptr<T> {
10 fn deref(&self) -> &T {
16 fn foo(self: Ptr<Self>); //~ ERROR `Ptr<Self>` cannot be used as the type of `self` without
22 fn foo(self: Ptr<Self>) {} //~ ERROR `Ptr<Bar>` cannot be used as the type of `self` without
26 fn bar(self: Box<Ptr<Self>>) {} //~ ERROR `Box<Ptr<Bar>>` cannot be used as the