Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
traits
/
trait-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
();
}