Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
definition-reachable
/
auxiliary
/
field-method-macro.rs
blob: 30ba70bdfeb66bc3699c0d74edbe73003adb1f05 [
file
] [
log
] [
blame
]
#![
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
()
}