Skip to content

Commit

Permalink
Add test for attribute display in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 3, 2022
1 parent 78698dd commit 995513c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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() {}

0 comments on commit 995513c

Please sign in to comment.