rust/tests/rustdoc/asref-for-and-of-local-82465.rs

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

20 lines
441 B
Rust
Raw Normal View History

2024-05-21 14:28:30 -05:00
// https://github.com/rust-lang/rust/issues/82465
#![crate_name = "foo"]
2021-05-03 09:06:57 -05: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 09:06:57 -05: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 09:06:57 -05:00
impl AsRef<Local> for str {
fn as_ref(&self) -> &Local {
todo!()
}
}