Skip to content

Commit 6696a60

Browse files
committed
Add test for trait toggle location
1 parent 73a5c1f commit 6696a60

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/rustdoc/toggle-trait-fn.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![crate_name = "foo"]
2+
3+
// @has foo/trait.Foo.html
4+
// @has - '//details[@class="rustdoc-toggle"]//code' 'bar'
5+
pub trait Foo {
6+
fn bar() -> ();
7+
}

0 commit comments

Comments
 (0)