Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 27th, 2018
69
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
use std::convert::AsRef;
#[derive(Debug)]
struct Foo;
/*
impl AsRef<str> for Foo {
fn as_ref(&self) -> &str {
"test"
}
}
*/
fn main() {
let foo = (&Foo).as_ref();
println!("{:?}", foo);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
asadsads
JavaScript | 13 min ago | 2.66 KB
Форд-Беллман
Python | 21 min ago | 0.51 KB
Флойд
Python | 26 min ago | 0.36 KB
API keys
Python | 27 min ago | 0.13 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 48 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 56 min ago | 0.38 KB
Knack's SDV Modpack Mods List - v1.4.1 -...
JSON | 57 min ago | 18.03 KB
CASHAPP Free Amazon Giftcard
GetText | 57 min ago | 0.29 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!