Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 17th, 2019
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn foo() -> () {
loop {
}
}
fn bar() -> ! {
loop {
}
}
type Empty = *const fn() -> ();
fn main() {
let mut x: Empty = foo as Empty;
x = bar as Empty;
unsafe {
(*x)();
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
member-career
Python | 1 min ago | 11.63 KB
Untitled
C | 3 min ago | 1.97 KB
Write script for All Union and Parts on Roblo...
Lua | 14 min ago | 1.96 KB
Create Lightmap UV
C# | 48 min ago | 1.47 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 60 min ago | 0.39 KB
amiberry wbx
Make | 1 hour ago | 11.15 KB
Untitled
Java | 1 hour ago | 0.43 KB
Untitled
CSS | 1 hour ago | 18.83 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!