error: batch-impl: a `{! ...}` top-level block must be the last block
--> tests/ui/top_level_block_not_last.rs:5:1
|
5 | #[batch_impl(usize #batch_preprocess_test(add,inc){*self+1} {fn other() {}})]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `batch_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused import: `batch_preprocess_test`
--> tests/ui/top_level_block_not_last.rs:1:30
|
1 | use batch_impl::{batch_impl, batch_preprocess_test};
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default