summary refs log tree commit diff
path: root/src/test/run-pass/proc-macro/add-impl.rs
blob: 239074b4e429ee118a55914a7423e2ec944a53c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// aux-build:add-impl.rs

#[macro_use]
extern crate add_impl;

#[derive(AddImpl)]
struct B;

fn main() {
    B.foo();
    foo();
    bar::foo();
}