Navigation Menu

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 Jun 10, 2021
1 parent 0deba55 commit b894f75
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
@@ -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 b894f75

Please sign in to comment.