about summary refs log tree commit diff
path: root/tests/ui/macros/macro-missing-fragment-deduplication.stderr
blob: 29d2ae0e16edb0d95e180122dd998fe44e487db5 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
error: missing fragment specifier
  --> $DIR/macro-missing-fragment-deduplication.rs:4:6
   |
LL |     ($name) => {};
   |      ^^^^^
   |
   = note: fragment specifiers must be provided
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`, along with `expr_2021` and `pat_param` for edition compatibility
help: try adding a specifier here
   |
LL |     ($name:spec) => {};
   |           +++++

error: unexpected end of macro invocation
  --> $DIR/macro-missing-fragment-deduplication.rs:8:5
   |
LL | macro_rules! m {
   | -------------- when calling this macro
...
LL |     m!();
   |     ^^^^ missing tokens in macro arguments
   |
note: while trying to match meta-variable `$name:tt`
  --> $DIR/macro-missing-fragment-deduplication.rs:4:6
   |
LL |     ($name) => {};
   |      ^^^^^

error: unexpected end of macro invocation
  --> $DIR/macro-missing-fragment-deduplication.rs:9:5
   |
LL | macro_rules! m {
   | -------------- when calling this macro
...
LL |     m!();
   |     ^^^^ missing tokens in macro arguments
   |
note: while trying to match meta-variable `$name:tt`
  --> $DIR/macro-missing-fragment-deduplication.rs:4:6
   |
LL |     ($name) => {};
   |      ^^^^^

error: unexpected end of macro invocation
  --> $DIR/macro-missing-fragment-deduplication.rs:10:5
   |
LL | macro_rules! m {
   | -------------- when calling this macro
...
LL |     m!();
   |     ^^^^ missing tokens in macro arguments
   |
note: while trying to match meta-variable `$name:tt`
  --> $DIR/macro-missing-fragment-deduplication.rs:4:6
   |
LL |     ($name) => {};
   |      ^^^^^

error: unexpected end of macro invocation
  --> $DIR/macro-missing-fragment-deduplication.rs:11:5
   |
LL | macro_rules! m {
   | -------------- when calling this macro
...
LL |     m!();
   |     ^^^^ missing tokens in macro arguments
   |
note: while trying to match meta-variable `$name:tt`
  --> $DIR/macro-missing-fragment-deduplication.rs:4:6
   |
LL |     ($name) => {};
   |      ^^^^^

error: aborting due to 5 previous errors