From 75fa098069941f0aa4223ead622528cb2ce4982c Mon Sep 17 00:00:00 2001 From: Jonathan Brouwer Date: Mon, 27 Apr 2026 09:52:43 +0200 Subject: [PATCH] Add test for existing bug --- tests/ui/attributes/where-doc.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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() {}