diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-14 19:21:10 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-14 19:21:10 +0100 |
| commit | 1bf9f69579e525a35fd712b7f00f2f24eebc6387 (patch) | |
| tree | fadd93494e06640678b3beae52ab56a7734d4254 /src/test/rustdoc | |
| parent | bf84eb538fd16743240434b3e837b36c35719fee (diff) | |
Prevent urls in headings
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/remove-url-from-headings.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/remove-url-from-headings.rs b/src/test/rustdoc/remove-url-from-headings.rs new file mode 100644 index 00000000000..7fbcdbafa74 --- /dev/null +++ b/src/test/rustdoc/remove-url-from-headings.rs @@ -0,0 +1,12 @@ +#![crate_name = "foo"] + +// @has foo/fn.foo.html +// !@has - '//a[@href="http://a.a"]' +// @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere' + +/// fooo +/// +/// # Implementing [stuff](http://a.a) somewhere +/// +/// hello +pub fn foo() {} |
