]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions-closures/fn-type-infer.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / functions-closures / fn-type-infer.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #![allow(unused_variables)]
5
6 pub fn main() {
7     // We should be able to type infer inside of ||s.
8     let _f = || {
9         let i = 10;
10     };
11 }