Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 15th, 2018
88
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn foo<T, F, G>(x: &mut T, mut f: F, g: G)
where
F: FnMut(&T) -> &T,
G: Fn(&T) -> &T,
{
{
f(x);
}
g(x);
}
fn main() {
let mut x = 5;
foo(&mut x, |a| a, |a| a);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Pastebin.ai - #1 pastebin alternative
PHP | 4 min ago | 0.84 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 5 min ago | 0.37 KB
notepad_navigator
Python | 16 min ago | 3.90 KB
Untitled
HTML | 33 min ago | 0.24 KB
Madnesstybe
LScript | 58 min ago | 64.08 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
test_script
Bash | 2 hours ago | 0.04 KB
German Localization
JSON | 3 hours ago | 190.45 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!