mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
31 lines
291 B
Rust
31 lines
291 B
Rust
//@ 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();
|
|
}
|