/// In either of the two scenarios above, we reject usage of such a constant in
/// a pattern match.
///
-/// See also the [structural match RFC][RFC1445], and [issue 63438][] which
+/// See also the [structural match RFC][RFC1445], and [issue 63438] which
/// motivated migrating from attribute-based design to this trait.
///
/// [RFC1445]: https://github.com/rust-lang/rfcs/blob/master/text/1445-restrict-constants-in-patterns.md
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized> Clone for $t<T> {
- fn clone(&self) -> $t<T> {
- $t
+ fn clone(&self) -> Self {
+ Self
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized> Default for $t<T> {
- fn default() -> $t<T> {
- $t
+ fn default() -> Self {
+ Self
}
}