3 // Struct methods with documentation should be wrapped in a <details> toggle with an appropriate
4 // summary. Struct methods with no documentation should not be wrapped.
6 // @has foo/struct.Foo.html
7 // @has - '//details[@class="rustdoc-toggle method-toggle"]//summary//h4[@class="code-header"]' 'is_documented()'
8 // @has - '//details[@class="rustdoc-toggle method-toggle"]//*[@class="docblock"]' 'is_documented is documented'
9 // @!has - '//details[@class="rustdoc-toggle method-toggle"]//summary//h4[@class="code-header"]' 'not_documented()'
14 pub fn not_documented() {}
16 /// is_documented is documented
17 pub fn is_documented() {}