We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d9ec7 commit 86b2323Copy full SHA for 86b2323
src/test/rustdoc/issue-82465-asref-for-and-of-local.rs
@@ -0,0 +1,16 @@
1
+use std::convert::AsRef;
2
+pub struct Local;
3
+
4
+// @has issue_82465_asref_for_and_of_local/struct.Local.html '//code' 'impl AsRef<str> for Local'
5
+impl AsRef<str> for Local {
6
+ fn as_ref(&self) -> &str {
7
+ todo!()
8
+ }
9
+}
10
11
+// @has - '//code' 'impl AsRef<Local> for str'
12
+impl AsRef<Local> for str {
13
+ fn as_ref(&self) -> &Local {
14
15
16
0 commit comments