Forgetting to add a first bencher: &mut test::Bencher, argument to a bench annotated function, causes the following:
error: expected type, found `)`
--> src/tests/mod.rs:27:47
|
27 | #[datatest::data("src/tests/index_tests.yaml")]
| ^
error[E0425]: cannot find value `arg` in this scope
--> src/tests/mod.rs:27:1
|
27 | #[datatest::data("src/tests/index_tests.yaml")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0061]: this function takes 1 parameter but 2 parameters were supplied
--> src/tests/mod.rs:27:47
|
27 | #[datatest::data("src/tests/index_tests.yaml")]
| ^ expected 1 parameter
28 | #[bench]
29 | fn test_index(case: &TestCase) {
| ------------------------------ defined here
Forgetting to add a first
bencher: &mut test::Bencher,
argument to abench
annotated function, causes the following:CC #2