diff options
| author | Michael Howell <michael@notriddle.com> | 2023-01-30 11:05:12 -0700 | 
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-01-30 11:06:18 -0700 | 
| commit | 7080f80e8b64eb5f2037de50991edb9e82aee3a5 (patch) | |
| tree | 26c2d27d0b59e40d240a2a631e5e51e98a5ab8d8 /tests/rustdoc/unit-return.rs | |
| parent | 006ca9b14da1e0145844598b3d6a554c042c702a (diff) | |
| download | rust-7080f80e8b64eb5f2037de50991edb9e82aee3a5.tar.gz rust-7080f80e8b64eb5f2037de50991edb9e82aee3a5.zip  | |
rustdoc: remove unnecessary wrapper div.item-decl from HTML
Diffstat (limited to 'tests/rustdoc/unit-return.rs')
| -rw-r--r-- | tests/rustdoc/unit-return.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rustdoc/unit-return.rs b/tests/rustdoc/unit-return.rs index 353cd1c4772..6ddfa0c4d5c 100644 --- a/tests/rustdoc/unit-return.rs +++ b/tests/rustdoc/unit-return.rs @@ -4,14 +4,14 @@ extern crate unit_return; -// @has 'foo/fn.f0.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u8) + Clone' +// @has 'foo/fn.f0.html' '//pre[@class="rust item-decl"]' 'F: FnMut(u8) + Clone' pub fn f0<F: FnMut(u8) + Clone>(f: F) {} -// @has 'foo/fn.f1.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u16) + Clone' +// @has 'foo/fn.f1.html' '//pre[@class="rust item-decl"]' 'F: FnMut(u16) + Clone' pub fn f1<F: FnMut(u16) -> () + Clone>(f: F) {} -// @has 'foo/fn.f2.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u32) + Clone' +// @has 'foo/fn.f2.html' '//pre[@class="rust item-decl"]' 'F: FnMut(u32) + Clone' pub use unit_return::f2; -// @has 'foo/fn.f3.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u64) + Clone' +// @has 'foo/fn.f3.html' '//pre[@class="rust item-decl"]' 'F: FnMut(u64) + Clone' pub use unit_return::f3;  | 
