Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
definition-reachable
/
auxiliary
/
field-method-macro.rs
blob: 30ba70bdfeb66bc3699c0d74edbe73003adb1f05 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
decl_macro
)]
mod
n
{
pub
struct
B
(
pub
(
crate
)
p
::
C
);
impl
B
{
pub
fn
new
()
->
Self
{
B
(
p
::
C
)
}
}
mod
p
{
pub
struct
C
;
impl
C
{
pub
fn
foo
(&
self
)
->
i32
{
33
}
}
}
}
pub
macro m
()
{
n
::
B
::
new
().
0.foo
()
}