about summary refs log tree commit diff
path: root/tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-11 17:02:32 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-11 17:02:32 +0000
commit32ee26c625e8fbb7a3aa56788cbb352f04491964 (patch)
tree7aa1e7f03f7f47ce16b3405859d41e35f32bd945 /tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs
parent413ca5d9f0868f5d91a8b773ce60d70d5205c3f3 (diff)
downloadrust-32ee26c625e8fbb7a3aa56788cbb352f04491964.tar.gz
rust-32ee26c625e8fbb7a3aa56788cbb352f04491964.zip
Add more docs to templates for attrs with incorrect arguments
Diffstat (limited to 'tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs')
-rw-r--r--tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs b/tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs
index df87a3d846e..126a534dc6f 100644
--- a/tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs
+++ b/tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs
@@ -1,21 +1,25 @@
 #[cfg]
 //~^ ERROR malformed `cfg` attribute
 //~| NOTE expected this to be a list
+//~| NOTE for more information, visit
 struct S1;
 
 #[cfg = 10]
 //~^ ERROR malformed `cfg` attribute
 //~| NOTE expected this to be a list
+//~| NOTE for more information, visit
 struct S2;
 
 #[cfg()]
 //~^ ERROR malformed `cfg` attribute
 //~| NOTE expected a single argument here
+//~| NOTE for more information, visit
 struct S3;
 
 #[cfg(a, b)]
 //~^ ERROR malformed `cfg` attribute
 //~| NOTE expected a single argument here
+//~| NOTE for more information, visit
 struct S4;
 
 #[cfg("str")] //~ ERROR `cfg` predicate key must be an identifier
@@ -29,6 +33,7 @@ struct S7;
 
 #[cfg(a = 10)] //~ ERROR malformed `cfg` attribute input
 //~^ NOTE expected a string literal here
+//~| NOTE for more information, visit
 struct S8;
 
 #[cfg(a = b"hi")]  //~ ERROR malformed `cfg` attribute input