regression test for issue 82465.

This commit is contained in:
Felix S. Klock II 2021-05-03 10:06:57 -04:00 committed by Mark Rousskov
parent e917d2f1ea
commit 106ac7eefc
1 changed files with 16 additions and 0 deletions

View File

@ -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!()
}
}