]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / parser / issues / issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr
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
3    |
4 LL |     struct BadS;
5    |     ^^^^^^^^^^^^
6    |
7    = help: consider moving the struct out to a nearby module scope
8
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
11    |
12 LL |         enum BadE {}
13    |         ^^^^^^^^^
14 ...
15 LL |     expand_to_enum!();
16    |     ----------------- in this macro invocation
17    |
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)
20
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
23    |
24 LL |     struct BadS;
25    |     ^^^^^^^^^^^^
26    |
27    = help: consider moving the struct out to a nearby module scope
28
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
31    |
32 LL |         enum BadE {}
33    |         ^^^^^^^^^
34 ...
35 LL |     expand_to_enum!();
36    |     ----------------- in this macro invocation
37    |
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)
40
41 error: struct is not supported in `extern` blocks
42   --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:42:5
43    |
44 LL |     struct BadS;
45    |     ^^^^^^^^^^^^
46    |
47    = help: consider moving the struct out to a nearby module scope
48
49 error: enum is not supported in `extern` blocks
50   --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
51    |
52 LL |         enum BadE {}
53    |         ^^^^^^^^^
54 ...
55 LL |     expand_to_enum!();
56    |     ----------------- in this macro invocation
57    |
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)
60
61 error: aborting due to 6 previous errors
62