Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 25th, 2018
88
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
type T = fn(i32) -> i32;
fn f(x: i32) -> i32 {
x + 10
}
fn main() {
unsafe {
let p: *mut T = &mut (f as T);
println!("{}", (*p)(20));
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
verifica fisiere PDF corupte (care nu se pot...
Python | 4 min ago | 1.32 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 30 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 43 min ago | 0.38 KB
ESP32 Influxdb
C++ | 2 hours ago | 3.13 KB
Untitled
C++ | 2 hours ago | 6.45 KB
2024-05-08_stats.json
JSON | 3 hours ago | 5.18 KB
2024-05-08_stats.json
JSON | 3 hours ago | 5.17 KB
2024-05-08_stats.json
JSON | 3 hours ago | 5.14 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!