diff --git a/tests/ui/attributes/where-doc.rs b/tests/ui/attributes/where-doc.rs index 12fcc71484cb..761d83966f65 100644 --- a/tests/ui/attributes/where-doc.rs +++ b/tests/ui/attributes/where-doc.rs @@ -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() {}