File tree Expand file tree Collapse file tree 6 files changed +26
-1
lines changed Expand file tree Collapse file tree 6 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ error: cannot find macro `test` in this scope
3
3
|
4
4
LL | concat!(test!());
5
5
| ^^^^
6
+ |
7
+ = note: `test` is in scope, but it is an attribute
6
8
7
9
error: aborting due to previous error
8
10
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ struct A;
13
13
14
14
#[ derive( println) ]
15
15
//~^ ERROR cannot find derive macro `println`
16
+ //~|`println` is in scope, but it is a function-like macro
16
17
struct B ;
17
18
18
19
fn main ( ) {
Original file line number Diff line number Diff line change 1
1
error: cannot find macro `bla` in this scope
2
- --> $DIR/issue-88228.rs:19 :5
2
+ --> $DIR/issue-88228.rs:20 :5
3
3
|
4
4
LL | bla!();
5
5
| ^^^
@@ -12,6 +12,8 @@ error: cannot find derive macro `println` in this scope
12
12
|
13
13
LL | #[derive(println)]
14
14
| ^^^^^^^
15
+ |
16
+ = note: `println` is in scope, but it is a function-like macro
15
17
16
18
error: cannot find derive macro `Bla` in this scope
17
19
--> $DIR/issue-88228.rs:9:10
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ LL | inline!();
8
8
|
9
9
LL | macro_rules! line {
10
10
| ----------------- similarly named macro `line` defined here
11
+ |
12
+ = note: `inline` is in scope, but it is an attribute
11
13
12
14
error: aborting due to previous error
13
15
Original file line number Diff line number Diff line change @@ -93,30 +93,40 @@ error: cannot find macro `my_macro_attr` in this scope
93
93
|
94
94
LL | my_macro_attr!();
95
95
| ^^^^^^^^^^^^^
96
+ |
97
+ = note: `my_macro_attr` is in scope, but it is an attribute
96
98
97
99
error: cannot find macro `MyTrait` in this scope
98
100
--> $DIR/macro-namespace-reserved-2.rs:33:5
99
101
|
100
102
LL | MyTrait!();
101
103
| ^^^^^^^
104
+ |
105
+ = note: `MyTrait` is in scope, but it is a derive macro
102
106
103
107
error: cannot find attribute `my_macro` in this scope
104
108
--> $DIR/macro-namespace-reserved-2.rs:38:3
105
109
|
106
110
LL | #[my_macro]
107
111
| ^^^^^^^^
112
+ |
113
+ = note: `my_macro` is in scope, but it is a function-like macro
108
114
109
115
error: cannot find derive macro `my_macro` in this scope
110
116
--> $DIR/macro-namespace-reserved-2.rs:48:10
111
117
|
112
118
LL | #[derive(my_macro)]
113
119
| ^^^^^^^^
120
+ |
121
+ = note: `my_macro` is in scope, but it is a function-like macro
114
122
115
123
error: cannot find derive macro `my_macro` in this scope
116
124
--> $DIR/macro-namespace-reserved-2.rs:48:10
117
125
|
118
126
LL | #[derive(my_macro)]
119
127
| ^^^^^^^^
128
+ |
129
+ = note: `my_macro` is in scope, but it is a function-like macro
120
130
121
131
error: aborting due to 20 previous errors
122
132
Original file line number Diff line number Diff line change @@ -3,24 +3,32 @@ error: cannot find derive macro `rustfmt` in this scope
3
3
|
4
4
LL | #[derive(rustfmt)]
5
5
| ^^^^^^^
6
+ |
7
+ = note: `rustfmt` is in scope, but it is not a derive macro
6
8
7
9
error: cannot find derive macro `rustfmt` in this scope
8
10
--> $DIR/tool-attributes-misplaced-1.rs:4:10
9
11
|
10
12
LL | #[derive(rustfmt)]
11
13
| ^^^^^^^
14
+ |
15
+ = note: `rustfmt` is in scope, but it is not a derive macro
12
16
13
17
error: cannot find attribute `rustfmt` in this scope
14
18
--> $DIR/tool-attributes-misplaced-1.rs:9:3
15
19
|
16
20
LL | #[rustfmt]
17
21
| ^^^^^^^
22
+ |
23
+ = note: `rustfmt` is in scope, but it is not an attribute
18
24
19
25
error: cannot find macro `rustfmt` in this scope
20
26
--> $DIR/tool-attributes-misplaced-1.rs:15:5
21
27
|
22
28
LL | rustfmt!();
23
29
| ^^^^^^^
30
+ |
31
+ = note: `rustfmt` is in scope, but it is not a macro
24
32
25
33
error[E0573]: expected type, found tool module `rustfmt`
26
34
--> $DIR/tool-attributes-misplaced-1.rs:1:10
You can’t perform that action at this time.
0 commit comments