Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
item-inside-macro.rs
blob: 6866c7313fcb5c5af2ff6ae35b1424f5cc2c4af3 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
();
}