Skip to content

Commit 86e3f76

Browse files
committed
regression test for issue 82465.
1 parent 03c763e commit 86e3f76

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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+
todo!()
15+
}
16+
}

0 commit comments

Comments
 (0)