blob: b0644e79611fa3b783592c388d4b0f2b3e49ef2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
trait Foo {}
impl<T: Fn(&())> Foo for T {}
fn baz<T: Foo>(_: T) {}
fn main() {
baz(|_| ());
//~^ ERROR implementation of `FnOnce` is not general enough
//~| ERROR mismatched types
}
|