add non-regression test to existing doc attributes

when `normalize_doc_attributes` is off, they shouldn't be normalized to a doc comment
This commit is contained in:
Rémy Rakic 2018-09-13 01:06:02 +02:00
parent 43f813867c
commit 4af0888648
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ impl Bar {
/// Blah blah blooo.
/// Blah blah blooo.
#[an_attribute]
#[doc = "an attribute that shouldn't be normalized to a doc comment"]
fn foo(&mut self) -> isize {
}

View File

@ -33,6 +33,7 @@ impl Bar {
/// Blah blah blooo.
/// Blah blah blooo.
#[an_attribute]
#[doc = "an attribute that shouldn't be normalized to a doc comment"]
fn foo(&mut self) -> isize {}
/// Blah blah bing.