Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 16th, 2019
76
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
fn modify_vec(_v: &mut Vec<i32>) {}
fn main() {
let mut vec = vec![1,2,3,4,5];
let ref_to_first = &vec[0];
vec.push(6);
modify_vec(&mut vec);
println!("{}", ref_to_first);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
[6027] CrownFall Candy Shop Rewards | t.me/DO...
JSON | 15 min ago | 19.98 KB
Untitled
Lua | 20 min ago | 0.49 KB
2024-04-18_stats.json
JSON | 28 min ago | 4.80 KB
2024-04-18_stats.json
JSON | 30 min ago | 4.79 KB
2024-04-18_stats.json
JSON | 31 min ago | 4.76 KB
Dijkstra Algorithm using Priority Queue
C++ | 44 min ago | 1.28 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 53 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 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!