]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc/recursive-deref-sidebar.rs
rustdoc-json: Make the `fns/generics.rs` test much more robust
[rust.git] / src / test / rustdoc / recursive-deref-sidebar.rs
index 65a7debc2538dd8e1804d0a302956a0e60fe5c2c..619f40eff8984fc6ee45fdf1f58fa233b23e60c2 100644 (file)
@@ -9,13 +9,13 @@ impl B { pub fn foo_b(&self) {} }
 pub struct C {}
 impl C { pub fn foo_c(&self) {} }
 
-// @has recursive_deref_sidebar/struct.A.html '//div[@class="sidebar-links"]' 'foo_b'
+// @has recursive_deref_sidebar/struct.A.html '//*[@class="sidebar-elems"]//section' 'foo_b'
 impl Deref for A {
     type Target = B;
     fn deref(&self) -> &B { todo!() }
 }
 
-// @has recursive_deref_sidebar/struct.A.html '//div[@class="sidebar-links"]' 'foo_c'
+// @has recursive_deref_sidebar/struct.A.html '//*[@class="sidebar-elems"]//section' 'foo_c'
 impl Deref for B {
     type Target = C;
     fn deref(&self) -> &C { todo!() }