]> git.lizzy.rs Git - rust.git/blob - src/test/ui/functions-closures/fn-type-infer.rs
Rollup merge of #98315 - joshtriplett:stabilize-core-ffi-c, r=Mark-Simulacrum
[rust.git] / src / test / 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 }