]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/macro-namespace-reserved-2.stderr
Rollup merge of #86478 - ehuss:future-incompat-test, r=oli-obk
[rust.git] / src / test / ui / proc-macro / macro-namespace-reserved-2.stderr
1 error: can't use a procedural macro from the same crate that defines it
2   --> $DIR/macro-namespace-reserved-2.rs:25:5
3    |
4 LL |     my_macro!();
5    |     ^^^^^^^^
6
7 error: can't use a procedural macro from the same crate that defines it
8   --> $DIR/macro-namespace-reserved-2.rs:29:5
9    |
10 LL |     crate::my_macro_attr!();
11    |     ^^^^^^^^^^^^^^^^^^^^
12
13 error: expected macro, found attribute macro `crate::my_macro_attr`
14   --> $DIR/macro-namespace-reserved-2.rs:29:5
15    |
16 LL |     crate::my_macro_attr!();
17    |     ^^^^^^^^^^^^^^^^^^^^ not a macro
18
19 error: can't use a procedural macro from the same crate that defines it
20   --> $DIR/macro-namespace-reserved-2.rs:34:5
21    |
22 LL |     crate::MyTrait!();
23    |     ^^^^^^^^^^^^^^
24
25 error: expected macro, found derive macro `crate::MyTrait`
26   --> $DIR/macro-namespace-reserved-2.rs:34:5
27    |
28 LL |     crate::MyTrait!();
29    |     ^^^^^^^^^^^^^^ not a macro
30
31 error: can't use a procedural macro from the same crate that defines it
32   --> $DIR/macro-namespace-reserved-2.rs:42:3
33    |
34 LL | #[my_macro_attr]
35    |   ^^^^^^^^^^^^^
36
37 error: can't use a procedural macro from the same crate that defines it
38   --> $DIR/macro-namespace-reserved-2.rs:44:3
39    |
40 LL | #[MyTrait]
41    |   ^^^^^^^
42
43 error: expected attribute, found derive macro `MyTrait`
44   --> $DIR/macro-namespace-reserved-2.rs:44:3
45    |
46 LL | #[MyTrait]
47    |   ^^^^^^^ not an attribute
48
49 error: can't use a procedural macro from the same crate that defines it
50   --> $DIR/macro-namespace-reserved-2.rs:53:10
51    |
52 LL | #[derive(my_macro_attr)]
53    |          ^^^^^^^^^^^^^
54
55 error: expected derive macro, found attribute macro `my_macro_attr`
56   --> $DIR/macro-namespace-reserved-2.rs:53:10
57    |
58 LL | #[derive(my_macro_attr)]
59    |          ^^^^^^^^^^^^^ not a derive macro
60
61 error: can't use a procedural macro from the same crate that defines it
62   --> $DIR/macro-namespace-reserved-2.rs:56:10
63    |
64 LL | #[derive(MyTrait)]
65    |          ^^^^^^^
66
67 error: can't use a procedural macro from the same crate that defines it
68   --> $DIR/macro-namespace-reserved-2.rs:39:3
69    |
70 LL | #[crate::my_macro]
71    |   ^^^^^^^^^^^^^^^
72
73 error: expected attribute, found macro `crate::my_macro`
74   --> $DIR/macro-namespace-reserved-2.rs:39:3
75    |
76 LL | #[crate::my_macro]
77    |   ^^^^^^^^^^^^^^^ not an attribute
78
79 error: can't use a procedural macro from the same crate that defines it
80   --> $DIR/macro-namespace-reserved-2.rs:50:10
81    |
82 LL | #[derive(crate::my_macro)]
83    |          ^^^^^^^^^^^^^^^
84
85 error: expected derive macro, found macro `crate::my_macro`
86   --> $DIR/macro-namespace-reserved-2.rs:50:10
87    |
88 LL | #[derive(crate::my_macro)]
89    |          ^^^^^^^^^^^^^^^ not a derive macro
90
91 error: cannot find macro `my_macro_attr` in this scope
92   --> $DIR/macro-namespace-reserved-2.rs:28:5
93    |
94 LL |     my_macro_attr!();
95    |     ^^^^^^^^^^^^^
96
97 error: cannot find macro `MyTrait` in this scope
98   --> $DIR/macro-namespace-reserved-2.rs:33:5
99    |
100 LL |     MyTrait!();
101    |     ^^^^^^^
102
103 error: cannot find attribute `my_macro` in this scope
104   --> $DIR/macro-namespace-reserved-2.rs:38:3
105    |
106 LL | #[my_macro]
107    |   ^^^^^^^^
108
109 error: cannot find derive macro `my_macro` in this scope
110   --> $DIR/macro-namespace-reserved-2.rs:48:10
111    |
112 LL | #[derive(my_macro)]
113    |          ^^^^^^^^
114
115 error: cannot find derive macro `my_macro` in this scope
116   --> $DIR/macro-namespace-reserved-2.rs:48:10
117    |
118 LL | #[derive(my_macro)]
119    |          ^^^^^^^^
120
121 error: aborting due to 20 previous errors
122