Skip to content

Commit

Permalink
regression test for issue 82465.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed May 3, 2021
1 parent 03c763e commit 86e3f76
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/rustdoc/issue-82465-asref-for-and-of-local.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use std::convert::AsRef;
pub struct Local;

// @has issue_82465_asref_for_and_of_local/struct.Local.html '//code' 'impl AsRef<str> for Local'
impl AsRef<str> for Local {
fn as_ref(&self) -> &str {
todo!()
}
}

// @has - '//code' 'impl AsRef<Local> for str'
impl AsRef<Local> for str {
fn as_ref(&self) -> &Local {
todo!()
}
}

0 comments on commit 86e3f76

Please sign in to comment.