Skip to content

Commit c8c1c83

Browse files
committed
Put back macro rule for checking syntax
1 parent 34d3885 commit c8c1c83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crossbeam-channel/tests/golang.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ macro_rules! go {
214214
}
215215
})
216216
};
217+
(@parse $($tail:tt)*) => {
218+
compile_error!("invalid `go!` syntax")
219+
};
217220
($($tail:tt)*) => {{
218221
go!(@parse $($tail)*)
219222
}};

0 commit comments

Comments
 (0)