batch-impl 0.9.2

A proc-macro library for batch generating trait impls with a powerful DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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