diff --git a/src/lib.rs b/src/lib.rs index e0c6610..c63384c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1252,6 +1252,7 @@ where pub fn bench_with_input(&mut self, id: BenchmarkId, input: &I, f: F) -> &mut Criterion where F: FnMut(&mut Bencher<'_, M>, &I), + I: ?Sized, { // It's possible to use BenchmarkId::from_parameter to create a benchmark ID with no function // name. That's intended for use with BenchmarkGroups where the function name isn't necessary,