]> git.proxmox.com Git - rustc.git/blame - src/test/ui/proc-macro/macro-namespace-reserved-2.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / proc-macro / macro-namespace-reserved-2.stderr
CommitLineData
8faf50e0 1error: can't use a procedural macro from the same crate that defines it
0731742a 2 --> $DIR/macro-namespace-reserved-2.rs:25:5
8faf50e0 3 |
532ac7d7 4LL | my_macro!();
b7449926 5 | ^^^^^^^^
8faf50e0
XL
6
7error: can't use a procedural macro from the same crate that defines it
416331ca 8 --> $DIR/macro-namespace-reserved-2.rs:29:5
8faf50e0 9 |
416331ca
XL
10LL | crate::my_macro_attr!();
11 | ^^^^^^^^^^^^^^^^^^^^
8faf50e0 12
416331ca
XL
13error: expected macro, found attribute macro `crate::my_macro_attr`
14 --> $DIR/macro-namespace-reserved-2.rs:29:5
8faf50e0 15 |
416331ca
XL
16LL | crate::my_macro_attr!();
17 | ^^^^^^^^^^^^^^^^^^^^ not a macro
8faf50e0
XL
18
19error: can't use a procedural macro from the same crate that defines it
416331ca 20 --> $DIR/macro-namespace-reserved-2.rs:34:5
8faf50e0 21 |
416331ca
XL
22LL | crate::MyTrait!();
23 | ^^^^^^^^^^^^^^
24
25error: expected macro, found derive macro `crate::MyTrait`
26 --> $DIR/macro-namespace-reserved-2.rs:34:5
27 |
28LL | crate::MyTrait!();
29 | ^^^^^^^^^^^^^^ not a macro
8faf50e0
XL
30
31error: can't use a procedural macro from the same crate that defines it
416331ca 32 --> $DIR/macro-namespace-reserved-2.rs:42:3
8faf50e0 33 |
532ac7d7 34LL | #[my_macro_attr]
b7449926 35 | ^^^^^^^^^^^^^
8faf50e0
XL
36
37error: can't use a procedural macro from the same crate that defines it
416331ca 38 --> $DIR/macro-namespace-reserved-2.rs:44:3
8faf50e0 39 |
532ac7d7 40LL | #[MyTrait]
b7449926 41 | ^^^^^^^
8faf50e0 42
416331ca
XL
43error: expected attribute, found derive macro `MyTrait`
44 --> $DIR/macro-namespace-reserved-2.rs:44:3
8faf50e0 45 |
416331ca
XL
46LL | #[MyTrait]
47 | ^^^^^^^ not an attribute
8faf50e0
XL
48
49error: can't use a procedural macro from the same crate that defines it
dfeec247 50 --> $DIR/macro-namespace-reserved-2.rs:53:10
8faf50e0 51 |
532ac7d7 52LL | #[derive(my_macro_attr)]
8faf50e0
XL
53 | ^^^^^^^^^^^^^
54
416331ca 55error: expected derive macro, found attribute macro `my_macro_attr`
dfeec247 56 --> $DIR/macro-namespace-reserved-2.rs:53:10
416331ca
XL
57 |
58LL | #[derive(my_macro_attr)]
59 | ^^^^^^^^^^^^^ not a derive macro
60
8faf50e0 61error: can't use a procedural macro from the same crate that defines it
dfeec247 62 --> $DIR/macro-namespace-reserved-2.rs:56:10
8faf50e0 63 |
532ac7d7 64LL | #[derive(MyTrait)]
8faf50e0
XL
65 | ^^^^^^^
66
416331ca
XL
67error: can't use a procedural macro from the same crate that defines it
68 --> $DIR/macro-namespace-reserved-2.rs:39:3
69 |
70LL | #[crate::my_macro]
71 | ^^^^^^^^^^^^^^^
72
73error: expected attribute, found macro `crate::my_macro`
74 --> $DIR/macro-namespace-reserved-2.rs:39:3
75 |
76LL | #[crate::my_macro]
77 | ^^^^^^^^^^^^^^^ not an attribute
78
79error: can't use a procedural macro from the same crate that defines it
dfeec247 80 --> $DIR/macro-namespace-reserved-2.rs:50:10
416331ca
XL
81 |
82LL | #[derive(crate::my_macro)]
83 | ^^^^^^^^^^^^^^^
84
85error: expected derive macro, found macro `crate::my_macro`
dfeec247 86 --> $DIR/macro-namespace-reserved-2.rs:50:10
416331ca
XL
87 |
88LL | #[derive(crate::my_macro)]
89 | ^^^^^^^^^^^^^^^ not a derive macro
90
e1599b0c
XL
91error: cannot find macro `my_macro_attr` in this scope
92 --> $DIR/macro-namespace-reserved-2.rs:28:5
93 |
94LL | my_macro_attr!();
95 | ^^^^^^^^^^^^^
94222f64
XL
96 |
97 = note: `my_macro_attr` is in scope, but it is an attribute: `#[my_macro_attr]`
e1599b0c
XL
98
99error: cannot find macro `MyTrait` in this scope
100 --> $DIR/macro-namespace-reserved-2.rs:33:5
101 |
102LL | MyTrait!();
103 | ^^^^^^^
94222f64
XL
104 |
105 = note: `MyTrait` is in scope, but it is a derive macro: `#[derive(MyTrait)]`
e1599b0c
XL
106
107error: cannot find attribute `my_macro` in this scope
416331ca
XL
108 --> $DIR/macro-namespace-reserved-2.rs:38:3
109 |
110LL | #[my_macro]
111 | ^^^^^^^^
94222f64
XL
112 |
113 = note: `my_macro` is in scope, but it is a function-like macro
416331ca
XL
114
115error: cannot find derive macro `my_macro` in this scope
116 --> $DIR/macro-namespace-reserved-2.rs:48:10
117 |
118LL | #[derive(my_macro)]
119 | ^^^^^^^^
94222f64
XL
120 |
121 = note: `my_macro` is in scope, but it is a function-like macro
416331ca 122
dfeec247
XL
123error: cannot find derive macro `my_macro` in this scope
124 --> $DIR/macro-namespace-reserved-2.rs:48:10
125 |
126LL | #[derive(my_macro)]
127 | ^^^^^^^^
94222f64
XL
128 |
129 = note: `my_macro` is in scope, but it is a function-like macro
dfeec247
XL
130
131error: aborting due to 20 previous errors
8faf50e0 132