Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. struct Foo;
  2.  
  3. fn main() {
  4. let x: Foo = Foo {};
  5. f(x);
  6. }
  7.  
  8. fn f(_x: &Foo) {
  9. println!("It's working!");
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement