Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 20th, 2018
91
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
use std::rc::Rc;
pub fn operate_int_rc(input : Rc<i32>) -> i32 {
*input
}
fn main() {
let a = Rc::new(5);
operate_int_rc(a.clone());
let x = a;
//operate_int_rc(x);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Shinada style
LScript | 53 sec ago | 20.90 KB
Breaker style 1st
LScript | 9 min ago | 36.78 KB
Breaker style 2rd
LScript | 11 min ago | 36.04 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 15 min ago | 0.39 KB
Villian style
LScript | 18 min ago | 39.23 KB
Untitled
SQL | 23 min ago | 0.24 KB
Поликлиника
C# | 53 min ago | 0.67 KB
toto6ot49
Java | 1 hour ago | 0.71 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!