rust/tests/rustdoc/asref-for-and-of-local-8246...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
441 B
Rust
Raw Permalink Normal View History

2024-05-22 03:28:30 +08:00
// https://github.com/rust-lang/rust/issues/82465
#![crate_name = "foo"]
2021-05-03 22:06:57 +08:00
use std::convert::AsRef;
pub struct Local;
//@ has foo/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
2021-05-03 22:06:57 +08:00
impl AsRef<str> for Local {
fn as_ref(&self) -> &str {
todo!()
}
}
//@ has - '//h3[@class="code-header"]' 'impl AsRef<Local> for str'
2021-05-03 22:06:57 +08:00
impl AsRef<Local> for str {
fn as_ref(&self) -> &Local {
todo!()
}
}