Created
April 8, 2020 20:51
-
-
Save GoldsteinE/3808fd29a9f1abb4196f87b285115604 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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