blob: 027d465d8b378dc835b27afc43316ba22eb2bd61 (
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
25
26
|
//@aux-build:serde.rs
// derive macros imported but unused
extern crate serde;
use serde::{Serialize, Deserialize};
#[serde(untagged)] //~ ERROR cannot find attribute `serde`
enum A { //~ HELP `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`
A,
B,
}
enum B { //~ HELP `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`
A,
#[serde(untagged)] //~ ERROR cannot find attribute `serde`
B,
}
enum C {
A,
#[sede(untagged)] //~ ERROR cannot find attribute `sede`
B, //~^ HELP the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
}
fn main() {}
|