about summary refs log tree commit diff
path: root/tests/ui/macros/macro-rules-attr-error.stderr
blob: 674d35091b68d00a197ba5458cd7699f9a5134fa (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
54
55
56
57
58
59
60
61
62
63
error: local_attr: struct S;
  --> $DIR/macro-rules-attr-error.rs:5:9
   |
LL |         compile_error!(concat!("local_attr: ", stringify!($($body)*)));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL |     #[local_attr]
   |     ------------- in this attribute macro expansion
   |
   = note: this error originates in the attribute macro `local_attr` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find macro `local_attr` in this scope
  --> $DIR/macro-rules-attr-error.rs:27:5
   |
LL |     local_attr!(arg);
   |     ^^^^^^^^^^
   |
   = note: `local_attr` is in scope, but it is an attribute: `#[local_attr]`

error: cannot find attribute `fn_only` in this scope
  --> $DIR/macro-rules-attr-error.rs:30:7
   |
LL | macro_rules! fn_only {
   |              ------- `fn_only` exists, but has no `attr` rules
...
LL |     #[fn_only]
   |       ^^^^^^^

error: cannot find macro `attr_only` in this scope
  --> $DIR/macro-rules-attr-error.rs:33:5
   |
LL | macro_rules! attr_only {
   |              --------- `attr_only` exists, but has no rules for function-like invocation
...
LL |     attr_only!();
   |     ^^^^^^^^^

error: cannot find attribute `forward_referenced_attr` in this scope
  --> $DIR/macro-rules-attr-error.rs:38:3
   |
LL | #[forward_referenced_attr]
   |   ^^^^^^^^^^^^^^^^^^^^^^^ consider moving the definition of `forward_referenced_attr` before this call
   |
note: a macro with the same name exists, but it appears later
  --> $DIR/macro-rules-attr-error.rs:42:14
   |
LL | macro_rules! forward_referenced_attr {
   |              ^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find attribute `cyclic_attr` in this scope
  --> $DIR/macro-rules-attr-error.rs:48:3
   |
LL | #[cyclic_attr]
   |   ^^^^^^^^^^^ consider moving the definition of `cyclic_attr` before this call
   |
note: a macro with the same name exists, but it appears later
  --> $DIR/macro-rules-attr-error.rs:50:14
   |
LL | macro_rules! cyclic_attr {
   |              ^^^^^^^^^^^

error: aborting due to 6 previous errors