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
/
name_resolution10.rs
blob
33643bd1a1477896d71e0dc3336d5303e9c02062
1
// { dg-options "-frust-name-resolution-2.0 -frust-compile-until=lowering" }
2
3
#![feature(decl_macro)]
4
5
pub mod foo {
6
pub mod bar {
7
pub mod baz {
8
// macros 2.0 get inserted in Ribs like items
9
pub macro boof() {}
10
}
11
}
12
}
13
14
#[macro_export]
15
fn main() {
16
foo::bar::baz::boof!();
17
crate::foo::bar::baz::boof!();
18
self::foo::bar::baz::boof!();
19
}