Skip to content

Commit

Permalink
Put back macro rule for checking syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alygin committed May 16, 2022
1 parent 34d3885 commit c8c1c83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crossbeam-channel/tests/golang.rs
Expand Up @@ -214,6 +214,9 @@ macro_rules! go {
}
})
};
(@parse $($tail:tt)*) => {
compile_error!("invalid `go!` syntax")
};
($($tail:tt)*) => {{
go!(@parse $($tail)*)
}};
Expand Down

0 comments on commit c8c1c83

Please sign in to comment.