fn assert_all(_f: F) where F: FnMut(&String) -> T, { } fn id(x: &String) -> &String { x } fn main() { assert_all::<_, &String>(id); //~^ ERROR implementation of `FnMut` is not general enough }