Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 20th, 2019
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn f(s: String) -> (impl FnOnce() -> String) {
move || {
s.to_string()
}
}
pub fn main() {
let v = f("Test".to_string());
println!("v: '{}'", v());
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ API Flaw Money Method
CSS | 44 min ago | 1.03 KB
This month smells like money
CSS | 49 min ago | 1.03 KB
⭐ Exploit Documentation ⭐
CSS | 54 min ago | 1.03 KB
Untitled
12 hours ago | 42.88 KB
z66is_archive.zip.txt
1 day ago | 36.47 KB
block universe of arithmetic truth
1 day ago | 1.91 KB
programAssembly
1 day ago | 4.98 KB
codePieces
1 day ago | 2.44 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!