Add test for trait toggle location
This commit is contained in:
parent
73a5c1f944
commit
6696a60f0f
1 changed files with 7 additions and 0 deletions
7
src/test/rustdoc/toggle-trait-fn.rs
Normal file
7
src/test/rustdoc/toggle-trait-fn.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
// @has foo/trait.Foo.html
|
||||
// @has - '//details[@class="rustdoc-toggle"]//code' 'bar'
|
||||
pub trait Foo {
|
||||
fn bar() -> ();
|
||||
}
|
Loading…
Add table
Reference in a new issue