]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-82465-asref-for-and-of-local.rs
Auto merge of #107549 - Zoxc:rustc-shared, r=jyn514
[rust.git] / tests / rustdoc / issue-82465-asref-for-and-of-local.rs
1 use std::convert::AsRef;
2 pub struct Local;
3
4 // @has issue_82465_asref_for_and_of_local/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
5 impl AsRef<str> for Local {
6     fn as_ref(&self) -> &str {
7         todo!()
8     }
9 }
10
11 // @has - '//h3[@class="code-header"]' 'impl AsRef<Local> for str'
12 impl AsRef<Local> for str {
13     fn as_ref(&self) -> &Local {
14         todo!()
15     }
16 }