regression test for issue 82465.

This commit is contained in:
Felix S. Klock II 2021-05-03 10:06:57 -04:00 committed by Felix Klock
parent 0deba5546d
commit b894f75594

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