diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:01:08 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:47:18 +0200 |
| commit | b84f4cc39e99f801dcd37125dffa67eb796c85b8 (patch) | |
| tree | 071def2349dabae166fd66b06ee9346aa825abb9 /tests/rustdoc/trait-impl.rs | |
| parent | be71d8b24f1aebe9c45279d95a76db8fa6a62574 (diff) | |
| download | rust-b84f4cc39e99f801dcd37125dffa67eb796c85b8.tar.gz rust-b84f4cc39e99f801dcd37125dffa67eb796c85b8.zip | |
Created `tests/rustdoc/impl` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/trait-impl.rs')
| -rw-r--r-- | tests/rustdoc/trait-impl.rs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/rustdoc/trait-impl.rs b/tests/rustdoc/trait-impl.rs deleted file mode 100644 index c65eecc4edf..00000000000 --- a/tests/rustdoc/trait-impl.rs +++ /dev/null @@ -1,45 +0,0 @@ -pub trait Trait { - /// Some long docs here. - /// - /// These docs are long enough that a link will be added to the end. - fn a(); - - /// These docs contain a [reference link]. - /// - /// [reference link]: https://example.com - fn b(); - - /// ``` - /// This code block should not be in the output, but a Read more link should be generated - /// ``` - fn c(); - - /// Escaped formatting a\*b\*c\* works - fn d(); -} - -pub struct Struct; - -impl Trait for Struct { - //@ has trait_impl/struct.Struct.html '//*[@id="method.a"]/../../div[@class="docblock"]' 'Some long docs' - //@ !has - '//*[@id="method.a"]/../../div[@class="docblock"]' 'link will be added' - //@ has - '//*[@id="method.a"]/../../div[@class="docblock"]/a' 'Read more' - //@ has - '//*[@id="method.a"]/../../div[@class="docblock"]/a/@href' 'trait.Trait.html#tymethod.a' - fn a() {} - - //@ has - '//*[@id="method.b"]/../../div[@class="docblock"]' 'These docs contain' - //@ has - '//*[@id="method.b"]/../../div[@class="docblock"]/a' 'reference link' - //@ has - '//*[@id="method.b"]/../../div[@class="docblock"]/a/@href' 'https://example.com' - fn b() {} - - //@ !has - '//*[@id="method.c"]/../../div[@class="docblock"]' 'code block' - //@ has - '//*[@id="method.c"]/../../div[@class="docblock"]/a' 'Read more' - //@ has - '//*[@id="method.c"]/../../div[@class="docblock"]/a/@href' 'trait.Trait.html#tymethod.c' - fn c() {} - - //@ has - '//*[@id="method.d"]/../../div[@class="docblock"]' 'Escaped formatting a*b*c* works' - //@ !has - '//*[@id="method.d"]/../../div[@class="docblock"]/em' '' - fn d() {} - - //@ has - '//*[@id="impl-Trait-for-Struct"]/h3//a/@href' 'trait.Trait.html' -} |
