Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo;
- fn one<'a>() -> () {
- let _reference = &Foo;
- }
- // syntactic sugar for
- fn two<'a>() -> () {
- let temp = Foo;
- let _reference_to_temp = &temp;
- }
- fn main() {
- one();
- two();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement