Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 19th, 2018
88
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
#[derive(Debug)]
enum E {
A,
B,
C,
D
}
fn main() {
let s = E::D;
match s {
E::A => println!("A"),
E::B => println!("C"),
unexptected => println!("unexpected! {:?}", unexptected)
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
SCRIPT PARA ELIMINAÇÃO DE ARQUIVOS TEMPORÁRIO...
Batch | 35 min ago | 2.06 KB
Untitled
C++ | 43 min ago | 1.27 KB
Kwintv - Local Buffer Overflow
C | 52 min ago | 2.29 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 52 min ago | 0.39 KB
Swimbot Error
Python | 60 min ago | 0.68 KB
Machine Controller
Lua | 1 hour ago | 1.18 KB
Notification Library
Lua | 1 hour ago | 3.97 KB
htacces
IO | 2 hours ago | 0.49 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!