about summary refs log tree commit diff
path: root/tests/ui/parser/macro/bad-macro-definition.stderr
blob: de6d9d6a38b159a3fd1e7ba478d10ef4d0e46478 (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
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: aborting due to 9 previous errors