blob: d15f33f708dedb826d361caf99108a922af1bbaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
error: macro definition ended unexpectedly
--> $DIR/bad-macro-definition.rs:3:23
|
LL | macro_rules! a { {} => }
| ^ expected right-hand side of macro rule
error: invalid macro matcher; matchers must be contained in balanced delimiters
--> $DIR/bad-macro-definition.rs:6:18
|
LL | macro_rules! b { 0 => }
| ^
error: macro definition ended unexpectedly
--> $DIR/bad-macro-definition.rs:6:22
|
LL | macro_rules! b { 0 => }
| ^ expected right-hand side of macro rule
error: invalid macro matcher; matchers must be contained in balanced delimiters
--> $DIR/bad-macro-definition.rs:10:18
|
LL | macro_rules! c { x => }
| ^
error: macro definition ended unexpectedly
--> $DIR/bad-macro-definition.rs:10:22
|
LL | macro_rules! c { x => }
| ^ expected right-hand side of macro rule
error: invalid macro matcher; matchers must be contained in balanced delimiters
--> $DIR/bad-macro-definition.rs:14:18
|
LL | macro_rules! d { _ => }
| ^
error: macro definition ended unexpectedly
--> $DIR/bad-macro-definition.rs:14:22
|
LL | macro_rules! d { _ => }
| ^ expected right-hand side of macro rule
error: expected `=>`, found end of macro arguments
--> $DIR/bad-macro-definition.rs:18:20
|
LL | macro_rules! e { {} }
| ^ expected `=>`
error: macros must contain at least one rule
--> $DIR/bad-macro-definition.rs:21:1
|
LL | macro_rules! f {}
| ^^^^^^^^^^^^^^^^^
error: `unsafe` is only supported on `attr` rules
--> $DIR/bad-macro-definition.rs:24:18
|
LL | macro_rules! g { unsafe {} => {} }
| ^^^^^^
error: aborting due to 10 previous errors
|