Reorganize rustdoc tests into their correct subdirectories for better categorization: - Move lint-related tests to rustdoc-ui/lints/ - Move intra-doc link tests to rustdoc-ui/intra-doc/ - Move deref-related tests to rustdoc-ui/deref/ - Move doc-cfg test to rustdoc/doc-cfg/ This improves test organization and makes it easier to find tests related to specific rustdoc functionality.
23 lines
361 B
Rust
23 lines
361 B
Rust
//@ check-pass
|
|
|
|
// ICE found in https://github.com/rust-lang/rust/issues/83123
|
|
|
|
pub struct Attribute;
|
|
|
|
pub struct Map<'hir> {
|
|
lt: &'hir (),
|
|
}
|
|
|
|
impl<'hir> Map<'hir> {
|
|
pub fn attrs(&self) -> &'hir [Attribute] { &[] }
|
|
}
|
|
|
|
pub struct List<T>(T);
|
|
|
|
impl<T> std::ops::Deref for List<T> {
|
|
type Target = [T];
|
|
fn deref(&self) -> &[T] {
|
|
&[]
|
|
}
|
|
}
|