repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
proc_macro_attribute_non_root_method.rs
blob
30f3196a976e71eabf285a479d79698dddb386ad
1
// { dg-additional-options "-frust-crate-type=proc-macro" }
2
3
struct DummyStruct;
4
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
}
10
}