Skip to content

Instantly share code, notes, and snippets.

@QuietMisdreavus
Created August 2, 2018 20:07
Show Gist options
  • Save QuietMisdreavus/47764ae6d1ac5c45569e96a375906e49 to your computer and use it in GitHub Desktop.
Save QuietMisdreavus/47764ae6d1ac5c45569e96a375906e49 to your computer and use it in GitHub Desktop.
pub struct Bounded<T: Clone>(T);
pub struct SomeStruct;
fn asdf() -> Bounded<SomeStruct> {
impl Clone for SomeStruct {
fn clone(&self) -> SomeStruct {
SomeStruct
}
}
Bounded(SomeStruct)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment