Guest User

Untitled

a guest
Nov 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. use std::rc::Rc;
  2.  
  3. pub fn operate_int_rc(input : Rc<i32>) -> i32 {
  4. *input
  5. }
  6.  
  7. fn main() {
  8. let a = Rc::new(5);
  9. operate_int_rc(a.clone());
  10.  
  11. let x = a;
  12. //operate_int_rc(x);
  13. }
Add Comment
Please, Sign In to add comment