Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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
();
}