summary refs log tree commit diff
path: root/src/test/ui/parser/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr
blob: bfd27a1a41e13390c0afd53a7808736595bea280 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
error: struct is not supported in `trait`s or `impl`s
  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:20:5
   |
LL |     struct BadS;
   |     ^^^^^^^^^^^^

error: enum is not supported in `trait`s or `impl`s
  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
   |
LL |         enum BadE {}
   |         ^^^^^^^^^
...
LL |     expand_to_enum!();
   |     ------------------ in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: struct is not supported in `trait`s or `impl`s
  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:31:5
   |
LL |     struct BadS;
   |     ^^^^^^^^^^^^

error: enum is not supported in `trait`s or `impl`s
  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
   |
LL |         enum BadE {}
   |         ^^^^^^^^^
...
LL |     expand_to_enum!();
   |     ------------------ in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: struct is not supported in `extern` blocks
  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:42:5
   |
LL |     struct BadS;
   |     ^^^^^^^^^^^^

error: enum is not supported in `extern` blocks
  --> $DIR/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs:5:9
   |
LL |         enum BadE {}
   |         ^^^^^^^^^
...
LL |     expand_to_enum!();
   |     ------------------ in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 6 previous errors