gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / proc_macro_attribute_non_root_method.rs
blob30f3196a976e71eabf285a479d79698dddb386ad
1 // { dg-additional-options "-frust-crate-type=proc-macro" }
3 struct DummyStruct;
5 impl DummyStruct {
6     pub fn method(self) {
7         #[proc_macro_attribute]
8         pub fn non_root_function() {} // { dg-error "functions tagged with .#.proc_macro_attribute.. must currently reside in the root of the crate" }
9     }