]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / unboxed-closures / unboxed-closures-type-mismatch.rs
1 use std::ops::FnMut;
2
3 pub fn main() {
4     let mut f = |x: isize, y: isize| -> isize { x + y };
5     let z = f(1_usize, 2);    //~ ERROR mismatched types
6     println!("{}", z);
7 }