mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 23:31:07 +00:00
15 lines
217 B
Rust
15 lines
217 B
Rust
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
|
|
}
|