3 // Regression test from crater run for
4 // <https://github.com/rust-lang/rust/pull/98109>.
7 pub trait ElementLike {}
9 pub struct Located<T> where T: ElementLike {
13 pub struct BlockElement<'a>(&'a str);
15 impl ElementLike for BlockElement<'_> {}
19 /// Comprised of the elements within a page
20 pub elements: Vec<Located<BlockElement<'a>>>,
23 impl<'a, __IdxT> std::ops::Index<__IdxT> for Page<'a> where
24 Vec<Located<BlockElement<'a>>>: std::ops::Index<__IdxT>
27 <Vec<Located<BlockElement<'a>>> as
28 std::ops::Index<__IdxT>>::Output;
31 fn index(&self, idx: __IdxT) -> &Self::Output {
32 <Vec<Located<BlockElement<'a>>> as
33 std::ops::Index<__IdxT>>::index(&self.elements, idx)