mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
17 lines
398 B
Rust
17 lines
398 B
Rust
use std::convert::AsRef;
|
|
pub struct Local;
|
|
|
|
// @has issue_82465_asref_for_and_of_local/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
|
|
impl AsRef<str> for Local {
|
|
fn as_ref(&self) -> &str {
|
|
todo!()
|
|
}
|
|
}
|
|
|
|
// @has - '//h3[@class="code-header"]' 'impl AsRef<Local> for str'
|
|
impl AsRef<Local> for str {
|
|
fn as_ref(&self) -> &Local {
|
|
todo!()
|
|
}
|
|
}
|