summary refs log tree commit diff
path: root/tests/ui/macros/missing-derive-3.rs
blob: 8add81988901a458c55d8e3d71c6e88e8346aa3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//@aux-build:serde.rs

// derive macros not imported, but namespace imported. Not yet handled.
extern crate serde;

#[serde(untagged)] //~ ERROR cannot find attribute `serde`
enum A {
    A,
    B,
}

enum B {
    A,
    #[serde(untagged)] //~ ERROR cannot find attribute `serde`
    B,
}

enum C {
    A,
    #[sede(untagged)] //~ ERROR cannot find attribute `sede`
    B,
}

fn main() {}