Skip to content

Instantly share code, notes, and snippets.

@GoldsteinE
Created April 8, 2020 20:51
Show Gist options
  • Save GoldsteinE/3808fd29a9f1abb4196f87b285115604 to your computer and use it in GitHub Desktop.
Save GoldsteinE/3808fd29a9f1abb4196f87b285115604 to your computer and use it in GitHub Desktop.
#![feature(prelude_import)]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std;
use std::rc::Rc;
pub struct Container<T>(Rc<T>);
#[automatically_derived]
#[allow(unused_qualifications)]
impl<T: ::core::clone::Clone> ::core::clone::Clone for Container<T> {
#[inline]
fn clone(&self) -> Container<T> {
match *self {
Container(ref __self_0_0) => Container(::core::clone::Clone::clone(&(*__self_0_0))),
}
}
}
impl<T> Container<T> {
fn really_clone(&self) -> Self {
self.clone()
}
}
fn main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment