Add test for attribute display in rustdoc
This commit is contained in:
parent
78698dd0fb
commit
995513c929
1 changed files with 7 additions and 0 deletions
7
src/test/rustdoc/attribute-rendering.rs
Normal file
7
src/test/rustdoc/attribute-rendering.rs
Normal 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() {}
|
Loading…
Add table
Reference in a new issue