Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 12th, 2019
103
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn make_closure<'a, T>(val: T) -> impl Fn() -> &'a T + 'a
{
move || &val
}
fn main()
{
let f = make_closure(42);
println!("{}", f())
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
FREE BTC GUIDE H
JavaScript | 51 sec ago | 0.08 KB
Make $1200 in 15 minutes R
JavaScript | 31 min ago | 0.08 KB
Untitled
SQL | 40 min ago | 2.63 KB
2025-06-30T21:02:31.901306
PHP | 1 hour ago | 1.05 KB
pride-flag
Python | 2 hours ago | 1.22 KB
Untitled
Lua | 2 hours ago | 37.62 KB
Exploit(2)
HTML | 3 hours ago | 0.45 KB
Exploit(1)
HTML | 3 hours ago | 0.23 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!