summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-82465-asref-for-and-of-local.rs
blob: adf4d111a6cb91b08748a7487a340e5fdbd57569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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!()
    }
}