☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
macros
/
proc
/
non_root_function.rs
☽
☼
gcc/testsuite/rust/compile/macros/proc/non_root_function.rs
code
plain
raw
1
// { dg-additional-options "-frust-crate-type=proc-macro" }
2
3
fn outer_function() {
4
#[proc_macro]
5
pub fn non_root_function() {} // { dg-error "functions tagged with .#.proc_macro.. must currently reside in the root of the crate" }
6
}