From 995513c92986713a3a8260d8944e5ed82755347b Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 3 Apr 2022 13:41:12 +0200 Subject: [PATCH] Add test for attribute display in rustdoc --- src/test/rustdoc/attribute-rendering.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/rustdoc/attribute-rendering.rs 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() {}