about summary refs log tree commit diff
path: root/tests/ui/lint/unused-qualification-in-derive-expansion.rs
blob: b2067e22c444378a446ef5cdcb53686268234c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ run-pass
//@ proc-macro: add-impl.rs

#![forbid(unused_qualifications)]

#[macro_use]
extern crate add_impl;

#[derive(AddImpl)]
struct B;

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