blob: f89a37c851217fd1f705e1e66d9f01641419ba33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
}
|