2 /// Some long docs here.
4 /// These docs are long enough that a link will be added to the end.
7 /// These docs contain a [reference link].
9 /// [reference link]: https://example.com
13 /// This code block should not be in the output, but a Read more link should be generated
17 /// Escaped formatting a\*b\*c\* works
23 impl Trait for Struct {
24 // @has trait_impl/struct.Struct.html '//*[@id="method.a"]/../../div[@class="docblock"]/p' 'Some long docs'
25 // @!has - '//*[@id="method.a"]/../../div[@class="docblock"]/p' 'link will be added'
26 // @has - '//*[@id="method.a"]/../../div[@class="docblock"]/p/a' 'Read more'
27 // @has - '//*[@id="method.a"]/../../div[@class="docblock"]/p/a/@href' 'trait.Trait.html#tymethod.a'
30 // @has - '//*[@id="method.b"]/../../div[@class="docblock"]/p' 'These docs contain'
31 // @has - '//*[@id="method.b"]/../../div[@class="docblock"]/p/a' 'reference link'
32 // @has - '//*[@id="method.b"]/../../div[@class="docblock"]/p/a/@href' 'https://example.com'
33 // @has - '//*[@id="method.b"]/../../div[@class="docblock"]/p/a' 'Read more'
34 // @has - '//*[@id="method.b"]/../../div[@class="docblock"]/p/a/@href' 'trait.Trait.html#tymethod.b'
37 // @!has - '//*[@id="method.c"]/../../div[@class="docblock"]/p' 'code block'
38 // @has - '//*[@id="method.c"]/../../div[@class="docblock"]/a' 'Read more'
39 // @has - '//*[@id="method.c"]/../../div[@class="docblock"]/a/@href' 'trait.Trait.html#tymethod.c'
42 // @has - '//*[@id="method.d"]/../../div[@class="docblock"]/p' 'Escaped formatting a*b*c* works'
43 // @!has - '//*[@id="method.d"]/../../div[@class="docblock"]/p/em'
46 // @has - '//*[@id="impl-Trait"]/h3//a/@href' 'trait.Trait.html'