blob: f89a37c851217fd1f705e1e66d9f01641419ba33 [file] [log] [blame] [edit]
fn assert_all<F, T>(_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
}