Skip to content

Commit 75fa098

Browse files
Add test for existing bug
1 parent 71ef1fa commit 75fa098

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/ui/attributes/where-doc.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ where
1616
//~^ ERROR most attributes are not supported in `where` clauses
1717
():,
1818

19+
// == That the doc attributes below don't trigger the error is a bug
20+
#[doc()]
21+
():,
22+
23+
#[doc(5)]
24+
():,
25+
26+
#[doc]
27+
():,
28+
29+
#[doc = 5]
30+
():,
31+
1932
{ }
2033

2134
fn main() {}

0 commit comments

Comments
 (0)