mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 19:32:01 +00:00
17 lines
182 B
Rust
17 lines
182 B
Rust
// run-pass
|
|
macro_rules! make_foo {
|
|
() => (
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
fn bar(&self) {}
|
|
}
|
|
)
|
|
}
|
|
|
|
make_foo!();
|
|
|
|
pub fn main() {
|
|
Foo.bar()
|
|
}
|