summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/smoke.rs
blob: 04625559b919e1c217b2a651a545e3748e768f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// run-pass

#![allow(unused_must_use)]
#![allow(path_statements)]
// aux-build:derive-a.rs

#[macro_use]
extern crate derive_a;

#[derive(Debug, PartialEq, A, Eq, Copy, Clone)]
struct A;

fn main() {
    A;
    assert_eq!(A, A);
    A.clone();
    let a = A;
    let _c = a;
    let _d = a;
}