Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 18th, 2018
77
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.12 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn f(s: &str) -> &str {
let s2 = s.to_string();
&s2
}
fn main() {
let a = f("test");
println!("{}", a);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
LCD Text rev_01
Arduino | 4 min ago | 1.97 KB
Untitled
C++ | 28 min ago | 2.11 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 36 min ago | 0.39 KB
Untitled
FreeBasic | 53 min ago | 0.69 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 hour ago | 0.38 KB
RSA encryption code
Erlang | 1 hour ago | 1.31 KB
Untitled
FreeBasic | 1 hour ago | 0.17 KB
stack queue deque
C++ | 2 hours ago | 2.58 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!