1 error: struct is not supported in `trait`s or `impl`s
2 --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:20:5
7 = help: consider moving the struct out to a nearby module scope
9 error: enum is not supported in `trait`s or `impl`s
10 --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
15 LL | expand_to_enum!();
16 | ----------------- in this macro invocation
18 = help: consider moving the enum out to a nearby module scope
19 = note: this error originates in the macro `expand_to_enum` (in Nightly builds, run with -Z macro-backtrace for more info)
21 error: struct is not supported in `trait`s or `impl`s
22 --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:31:5
27 = help: consider moving the struct out to a nearby module scope
29 error: enum is not supported in `trait`s or `impl`s
30 --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
35 LL | expand_to_enum!();
36 | ----------------- in this macro invocation
38 = help: consider moving the enum out to a nearby module scope
39 = note: this error originates in the macro `expand_to_enum` (in Nightly builds, run with -Z macro-backtrace for more info)
41 error: struct is not supported in `extern` blocks
42 --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:42:5
47 = help: consider moving the struct out to a nearby module scope
49 error: enum is not supported in `extern` blocks
50 --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
55 LL | expand_to_enum!();
56 | ----------------- in this macro invocation
58 = help: consider moving the enum out to a nearby module scope
59 = note: this error originates in the macro `expand_to_enum` (in Nightly builds, run with -Z macro-backtrace for more info)
61 error: aborting due to 6 previous errors