2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-01-02 16:44:21 -06:00
|
|
|
macro_rules! make_foo {
|
2013-11-25 01:08:53 -06:00
|
|
|
() => (
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn bar(&self) {}
|
|
|
|
}
|
|
|
|
)
|
2015-01-02 16:44:21 -06:00
|
|
|
}
|
2013-11-25 01:08:53 -06:00
|
|
|
|
2014-11-14 11:18:10 -06:00
|
|
|
make_foo!();
|
2013-11-25 01:08:53 -06:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
Foo.bar()
|
|
|
|
}
|