File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change
1
+ #![ allow( unused_macro_rules) ]
2
+
1
3
use async_trait:: async_trait;
2
4
3
5
macro_rules! picky {
Original file line number Diff line number Diff line change 1
1
error: no rules expected the token `{`
2
- --> tests/ui/delimiter-span.rs:17 :16
2
+ --> tests/ui/delimiter-span.rs:19 :16
3
3
|
4
- 3 | macro_rules! picky {
4
+ 5 | macro_rules! picky {
5
5
| ------------------ when calling this macro
6
6
...
7
- 17 | picky!({ 123, self });
7
+ 19 | picky!({ 123, self });
8
8
| ^ no rules expected this token in macro call
9
9
10
10
error: no rules expected the token `{`
11
- --> tests/ui/delimiter-span.rs:18 :16
11
+ --> tests/ui/delimiter-span.rs:20 :16
12
12
|
13
- 3 | macro_rules! picky {
13
+ 5 | macro_rules! picky {
14
14
| ------------------ when calling this macro
15
15
...
16
- 18 | picky!({ 123 });
16
+ 20 | picky!({ 123 });
17
17
| ^ no rules expected this token in macro call
18
-
19
- warning: 1st rule of macro `picky` is never used
20
- --> tests/ui/delimiter-span.rs:4:5
21
- |
22
- 4 | ($(t:tt)*) => {};
23
- | ^^^^^^^^^^
24
- |
25
- = note: `#[warn(unused_macro_rules)]` on by default
You can’t perform that action at this time.
0 commit comments