fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.7 KiB53 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
7error: enum is not supported in `trait`s or `impl`s
8  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
9   |
10LL |         enum BadE {}
11   |         ^^^^^^^^^
12...
13LL |     expand_to_enum!();
14   |     ------------------ in this macro invocation
15   |
16   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
17
18error: struct is not supported in `trait`s or `impl`s
19  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:31:5
20   |
21LL |     struct BadS;
22   |     ^^^^^^^^^^^^
23
24error: enum is not supported in `trait`s or `impl`s
25  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
26   |
27LL |         enum BadE {}
28   |         ^^^^^^^^^
29...
30LL |     expand_to_enum!();
31   |     ------------------ in this macro invocation
32   |
33   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
34
35error: struct is not supported in `extern` blocks
36  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:42:5
37   |
38LL |     struct BadS;
39   |     ^^^^^^^^^^^^
40
41error: enum is not supported in `extern` blocks
42  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
43   |
44LL |         enum BadE {}
45   |         ^^^^^^^^^
46...
47LL |     expand_to_enum!();
48   |     ------------------ in this macro invocation
49   |
50   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
51
52error: aborting due to 6 previous errors
53