Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 12th, 2019
120
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
Documents
21 min ago | 0.43 KB
Free Crypto Method
CSS | 22 min ago | 0.70 KB
Crypto admin access
23 min ago | 0.43 KB
+12,000$ in 2 days
CSS | 23 min ago | 0.71 KB
웹 보안 - HTML & JavaScript 기초
37 min ago | 6.45 KB
Trevor-powershell
60 min ago | 0.15 KB
Halo Evolutions 21
8 hours ago | 1.25 KB
EU Defense Stocks
21 hours ago | 0.06 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!