Skip to content

Commit ebfd9aa

Browse files
authored
feat(test2): Forward main attributes (#145)
2 parents ec6d78f + cde33b5 commit ebfd9aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/libtest2/src/macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#[macro_export]
22
macro_rules! _main_parse {
3-
(#[main] fn main $($item:tt)*) => {
3+
(#[main] $(#[$meta:meta])* fn main $($item:tt)*) => {
44
static TESTS: $crate::_private::DistributedList<$crate::_private::DynCase> = $crate::_private::DistributedList::root();
55

6+
$(#[$meta])*
67
fn main() {
78
fn inner $($item)*
89

0 commit comments

Comments
 (0)