File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 1
- macro_rules! test_macro {
2
- ( |$transaction: ident| $body: expr) => { {
3
- let $transaction = some_value;
4
- let _ = $body;
5
- } } ;
6
- }
7
-
8
- fn test_func < T > ( func : impl FnOnce ( u8 ) -> T ) {
9
- }
10
-
11
- fn test_func2 < T > ( func : impl FnOnce ( u8 ) -> T , value : u8 ) {
12
- }
13
-
14
1
// _0: in-macro
15
2
// _1: last argument in function invocation
16
3
// _2: non-last argument in function invocation
Original file line number Diff line number Diff line change 1
- macro_rules! test_macro {
2
- ( |$transaction: ident| $body: expr) => { {
3
- let $transaction = some_value;
4
- let _ = $body;
5
- } } ;
6
- }
7
-
8
- fn test_func < T > ( func : impl FnOnce ( u8 ) -> T ) { }
9
-
10
- fn test_func2 < T > ( func : impl FnOnce ( u8 ) -> T , value : u8 ) { }
11
-
12
1
// _0: in-macro
13
2
// _1: last argument in function invocation
14
3
// _2: non-last argument in function invocation
You can’t perform that action at this time.
0 commit comments