mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
regression test for issue 82465.
This commit is contained in:
parent
0deba5546d
commit
b894f75594
16
src/test/rustdoc/issue-82465-asref-for-and-of-local.rs
Normal file
16
src/test/rustdoc/issue-82465-asref-for-and-of-local.rs
Normal 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!()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user