]> git.lizzy.rs Git - rust.git/blob - tests/ui/unboxed-closures/unboxed-closures-simple.rs
Auto merge of #107054 - petrochenkov:effvisdoc3, r=GuillaumeGomez
[rust.git] / tests / ui / unboxed-closures / unboxed-closures-simple.rs
1 // run-pass
2 #![allow(unused_mut)]
3 #![allow(unused_imports)]
4 use std::ops::FnMut;
5
6 pub fn main() {
7     let mut f = |x: isize, y: isize| -> isize { x + y };
8     let z = f(1, 2);
9     assert_eq!(z, 3);
10 }