Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
4b3ece475d6e77465a30c8b53d7e1e9e861e4b79
/
.
/
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
();
}