blob: d3f00f3d231885396d087fc44eda965330292540 (
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
27
28
29
30
31
32
|
use auxiliary_macro::{hidden_repr_macro, HiddenRepr};
use pin_project::pin_project;
hidden_repr_macro! {} //~ ERROR expected item after attributes
#[pin_project]
struct S1 {
#[pin]
f: u32,
}
macro_rules! hidden_repr_macro2 {
() => {
#[repr(packed)] //~ ERROR expected item after attributes
};
}
hidden_repr_macro2! {}
#[pin_project]
struct S2 {
#[pin]
f: u32,
}
#[derive(HiddenRepr)] //~ ERROR expected item after attributes
struct S3 {}
#[pin_project]
struct S4 {
#[pin]
f: u32,
}
fn main() {}
|