fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.1 KiB62 linesraw
1error: 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   |
4LL |     struct BadS;
5   |     ^^^^^^^^^^^^
6   |
7   = help: consider moving the struct out to a nearby module scope
8
9error: 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   |
12LL |         enum BadE {}
13   |         ^^^^^^^^^
14...
15LL |     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 a macro (in Nightly builds, run with -Z macro-backtrace for more info)
20
21error: 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   |
24LL |     struct BadS;
25   |     ^^^^^^^^^^^^
26   |
27   = help: consider moving the struct out to a nearby module scope
28
29error: 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   |
32LL |         enum BadE {}
33   |         ^^^^^^^^^
34...
35LL |     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 a macro (in Nightly builds, run with -Z macro-backtrace for more info)
40
41error: struct is not supported in `extern` blocks
42  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:42:5
43   |
44LL |     struct BadS;
45   |     ^^^^^^^^^^^^
46   |
47   = help: consider moving the struct out to a nearby module scope
48
49error: enum is not supported in `extern` blocks
50  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
51   |
52LL |         enum BadE {}
53   |         ^^^^^^^^^
54...
55LL |     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 a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60
61error: aborting due to 6 previous errors
62