Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo;
- fn main() {
- let x: Foo = Foo {};
- f(x);
- }
- fn f(_x: &Foo) {
- println!("It's working!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement