]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/closure-mismatch.rs
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / test / ui / mismatched_types / closure-mismatch.rs
1 trait Foo {}
2
3 impl<T: Fn(&())> Foo for T {}
4
5 fn baz<T: Foo>(_: T) {}
6
7 fn main() {
8     baz(|_| ()); //~ ERROR mismatched types
9 }