]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/attribute-with-no-generics-in-parameter-list.rs
Auto merge of #65421 - estebank:variants, r=petrochenkov
[rust.git] / src / test / ui / attribute-with-no-generics-in-parameter-list.rs
index 3342f749dee97852498c02bb17fa49b9874b1e61..c2cc91d8f7703768c45c9ca21ad50bc235e38888 100644 (file)
@@ -1,5 +1,3 @@
-// run-pass
-
-fn foo<#[attr]>() {} // ok
+fn foo<#[attr]>() {} //~ ERROR attribute without generic parameters
 
 fn main() {}