Debian Codegraph @

gcc/testsuite/rust/compile/name_resolution7.rs

raw
1 // { dg-options "-frust-name-resolution-2.0" }
2
3 // check that macros by example do not get inserted in ribs like regular items
4 pub mod foo {
5 pub mod bar {
6 pub mod baz {
7 pub mod qux {
8 macro_rules! foo {
9 (one) => {};
10 }
11 }
12 }
13 }
14 }
15
16 crate::foo::bar::baz::qux::foo!(); // { dg-error "could not resolve macro invocation" }
17 foo::bar::baz::qux::foo!(); // { dg-error "could not resolve macro invocation" }