about summary refs log tree commit diff
path: root/tests/ui/inference/newlambdas-ret-infer2.rs
blob: 40d45d3569c1b71632ed1660da8400cb3b5c89f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass

#![allow(dead_code)]
// Test that the lambda kind is inferred correctly as a return
// expression


fn unique() -> Box<dyn FnMut()+'static> { Box::new(|| ()) }

pub fn main() {
}