Add test for attribute display in rustdoc

This commit is contained in:
Guillaume Gomez 2022-04-03 13:41:12 +02:00
parent 78698dd0fb
commit 995513c929

View file

@ -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() {}