Created
September 11, 2017 15:54
-
-
Save anonymous/4df57da244f82ebfe5731a8c8460f2ff to your computer and use it in GitHub Desktop.
Rust code shared from the playground
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
use std::ops::Add; | |
struct S; | |
impl<'a> Add for &'a S { | |
type Output = &'a S; | |
fn add(self, _other: Self) -> Self { | |
self | |
} | |
} | |
fn main() { | |
let x = &&S; | |
&S + x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment