File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 6
6
// @has 'foo/macro.todo.html'
7
7
// @has - '//span[@class="macro"]' 'macro_rules!'
8
8
// @has - '//span[@class="ident"]' 'todo'
9
- // Note: count = 2 * ('=' + '>') + '+' = 2 * (1 + 1) + 1 = 5
10
- // @count - '//pre[@class="rust macro"]//span[@class="op"]' 5
9
+ // Note: the only op is the `+`
10
+ // @count - '//pre[@class="rust macro"]//span[@class="op"]' 1
11
11
12
- // @has - '{ ()'
13
- // @has - '//span[@class="op"]' '='
14
- // @has - '//span[@class="op"]' '>'
15
- // @has - '{ ... };'
16
-
17
- // @has - '($('
12
+ // @has - '{ () => { ... }; ($('
18
13
// @has - '//span[@class="macro-nonterminal"]' '$'
19
14
// @has - '//span[@class="macro-nonterminal"]' 'arg'
20
15
// @has - ':'
21
16
// @has - '//span[@class="ident"]' 'tt'
22
17
// @has - '),'
23
18
// @has - '//span[@class="op"]' '+'
24
- // @has - ')'
19
+ // @has - ') => { ... }; } '
25
20
pub use std:: todo;
26
21
27
22
mod mod1 {
28
23
// @has 'foo/macro.macro1.html'
29
24
// @has - 'macro_rules!'
30
25
// @has - 'macro1'
31
- // @has - '{ ()'
32
- // @has - '($('
26
+ // @has - '{ () => { ... }; ($('
33
27
// @has - '//span[@class="macro-nonterminal"]' '$'
34
28
// @has - '//span[@class="macro-nonterminal"]' 'arg'
35
29
// @has - ':'
36
30
// @has - 'expr'
37
31
// @has - '),'
38
32
// @has - '+'
39
- // @has - ')'
33
+ // @has - ') => { ... }; } '
40
34
#[ macro_export]
41
35
macro_rules! macro1 {
42
36
( ) => { } ;
You can’t perform that action at this time.
0 commit comments