]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-82465-asref-for-and-of-local.rs
Rollup merge of #93755 - ChayimFriedman2:allow-comparing-vecs-with-different-allocato...
[rust.git] / src / test / 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 in-band"]' '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 in-band"]' 'impl AsRef<Local> for str'
12 impl AsRef<Local> for str {
13     fn as_ref(&self) -> &Local {
14         todo!()
15     }
16 }