summaryrefslogtreecommitdiffstats
path: root/tests/ui/functions-closures/fn-type-infer.rs
blob: fe6567f22b5047963fa866c2ae942665aa66b9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// pretty-expanded FIXME #23616

#![allow(unused_variables)]

pub fn main() {
    // We should be able to type infer inside of ||s.
    let _f = || {
        let i = 10;
    };
}