diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-04-03 13:41:12 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-04-03 13:41:12 +0200 |
| commit | 995513c92986713a3a8260d8944e5ed82755347b (patch) | |
| tree | ae069d8c940794d3cba4d059592f34ae16ef939a | |
| parent | 78698dd0fbdf7772fca2b203ae262de00e268f37 (diff) | |
| download | rust-995513c92986713a3a8260d8944e5ed82755347b.tar.gz rust-995513c92986713a3a8260d8944e5ed82755347b.zip | |
Add test for attribute display in rustdoc
| -rw-r--r-- | src/test/rustdoc/attribute-rendering.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/attribute-rendering.rs b/src/test/rustdoc/attribute-rendering.rs new file mode 100644 index 00000000000..6777871846e --- /dev/null +++ b/src/test/rustdoc/attribute-rendering.rs @@ -0,0 +1,7 @@ +#![crate_name = "foo"] + +// @has 'foo/fn.f.html' +// @has - //*[@'class="docblock item-decl"]' '#[export_name = "f"] pub fn f()' +#[export_name = "\ +f"] +pub fn f() {} |
