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
33 |
44LL | concat!(test!());
55 | ^^^^
6+ |
7+ = note: `test` is in scope, but it is an attribute
68
79error: aborting due to previous error
810
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ struct A;
1313
1414#[ derive( println) ]
1515//~^ ERROR cannot find derive macro `println`
16+ //~|`println` is in scope, but it is a function-like macro
1617struct B ;
1718
1819fn main ( ) {
Original file line number Diff line number Diff line change 11error: cannot find macro `bla` in this scope
2- --> $DIR/issue-88228.rs:19 :5
2+ --> $DIR/issue-88228.rs:20 :5
33 |
44LL | bla!();
55 | ^^^
@@ -12,6 +12,8 @@ error: cannot find derive macro `println` in this scope
1212 |
1313LL | #[derive(println)]
1414 | ^^^^^^^
15+ |
16+ = note: `println` is in scope, but it is a function-like macro
1517
1618error: cannot find derive macro `Bla` in this scope
1719 --> $DIR/issue-88228.rs:9:10
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ LL | inline!();
88 |
99LL | macro_rules! line {
1010 | ----------------- similarly named macro `line` defined here
11+ |
12+ = note: `inline` is in scope, but it is an attribute
1113
1214error: aborting due to previous error
1315
Original file line number Diff line number Diff line change @@ -93,30 +93,40 @@ error: cannot find macro `my_macro_attr` in this scope
9393 |
9494LL | my_macro_attr!();
9595 | ^^^^^^^^^^^^^
96+ |
97+ = note: `my_macro_attr` is in scope, but it is an attribute
9698
9799error: cannot find macro `MyTrait` in this scope
98100 --> $DIR/macro-namespace-reserved-2.rs:33:5
99101 |
100102LL | MyTrait!();
101103 | ^^^^^^^
104+ |
105+ = note: `MyTrait` is in scope, but it is a derive macro
102106
103107error: cannot find attribute `my_macro` in this scope
104108 --> $DIR/macro-namespace-reserved-2.rs:38:3
105109 |
106110LL | #[my_macro]
107111 | ^^^^^^^^
112+ |
113+ = note: `my_macro` is in scope, but it is a function-like macro
108114
109115error: cannot find derive macro `my_macro` in this scope
110116 --> $DIR/macro-namespace-reserved-2.rs:48:10
111117 |
112118LL | #[derive(my_macro)]
113119 | ^^^^^^^^
120+ |
121+ = note: `my_macro` is in scope, but it is a function-like macro
114122
115123error: cannot find derive macro `my_macro` in this scope
116124 --> $DIR/macro-namespace-reserved-2.rs:48:10
117125 |
118126LL | #[derive(my_macro)]
119127 | ^^^^^^^^
128+ |
129+ = note: `my_macro` is in scope, but it is a function-like macro
120130
121131error: aborting due to 20 previous errors
122132
Original file line number Diff line number Diff line change @@ -3,24 +3,32 @@ error: cannot find derive macro `rustfmt` in this scope
33 |
44LL | #[derive(rustfmt)]
55 | ^^^^^^^
6+ |
7+ = note: `rustfmt` is in scope, but it is not a derive macro
68
79error: cannot find derive macro `rustfmt` in this scope
810 --> $DIR/tool-attributes-misplaced-1.rs:4:10
911 |
1012LL | #[derive(rustfmt)]
1113 | ^^^^^^^
14+ |
15+ = note: `rustfmt` is in scope, but it is not a derive macro
1216
1317error: cannot find attribute `rustfmt` in this scope
1418 --> $DIR/tool-attributes-misplaced-1.rs:9:3
1519 |
1620LL | #[rustfmt]
1721 | ^^^^^^^
22+ |
23+ = note: `rustfmt` is in scope, but it is not an attribute
1824
1925error: cannot find macro `rustfmt` in this scope
2026 --> $DIR/tool-attributes-misplaced-1.rs:15:5
2127 |
2228LL | rustfmt!();
2329 | ^^^^^^^
30+ |
31+ = note: `rustfmt` is in scope, but it is not a macro
2432
2533error[E0573]: expected type, found tool module `rustfmt`
2634 --> $DIR/tool-attributes-misplaced-1.rs:1:10
You can’t perform that action at this time.
0 commit comments