regression test for issue 82465.
This commit is contained in:
parent
e917d2f1ea
commit
106ac7eefc
|
@ -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!()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue