mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 09:48:13 +00:00
18 lines
223 B
Rust
18 lines
223 B
Rust
//@ run-pass
|
|
//@ proc-macro: add-impl.rs
|
|
//@ ignore-backends: gcc
|
|
|
|
#![forbid(unused_qualifications)]
|
|
|
|
#[macro_use]
|
|
extern crate add_impl;
|
|
|
|
#[derive(AddImpl)]
|
|
struct B;
|
|
|
|
fn main() {
|
|
B.foo();
|
|
foo();
|
|
bar::foo();
|
|
}
|