rust/tests/rustdoc/issue-82465-asref-for-and-of-local.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
398 B
Rust
Raw Normal View History

2021-05-03 14:06:57 +00:00
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'
2021-05-03 14:06:57 +00:00
impl AsRef<str> for Local {
fn as_ref(&self) -> &str {
todo!()
}
}
// @has - '//h3[@class="code-header"]' 'impl AsRef<Local> for str'
2021-05-03 14:06:57 +00:00
impl AsRef<Local> for str {
fn as_ref(&self) -> &Local {
todo!()
}
}