Files
rust/tests/rustdoc-ui/deref/recursive-deref-ice.rs
Aarav Desai 0715745c1c Move rustdoc tests to appropriate subdirectories
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.
2025-10-26 19:16:41 -07:00

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] {
&[]
}
}