mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add test for existing bug
This commit is contained in:
@@ -16,6 +16,19 @@ fn test()
|
||||
//~^ ERROR most attributes are not supported in `where` clauses
|
||||
():,
|
||||
|
||||
// == That the doc attributes below don't trigger the error is a bug
|
||||
#[doc()]
|
||||
():,
|
||||
|
||||
#[doc(5)]
|
||||
():,
|
||||
|
||||
#[doc]
|
||||
():,
|
||||
|
||||
#[doc = 5]
|
||||
():,
|
||||
|
||||
{ }
|
||||
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user