Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
traits
/
item-inside-macro.rs
blob: 54bf872d0287d8402105024aca2722375c6f7d54 [
file
] [
log
] [
blame
]
// run-pass
// Issue #34183
macro_rules
!
foo
{
()
=>
{
fn
foo
()
{
}
}
}
macro_rules
!
bar
{
()
=>
{
fn
bar
();
}
}
trait
Bleh
{
foo
!();
bar
!();
}
struct
Test
;
impl
Bleh
for
Test
{
fn
bar
()
{}
}
fn
main
()
{
Test
::
bar
();
Test
::
foo
();
}