]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/newlambdas-ret-infer.rs
Rollup merge of #107348 - lcnr:project-solve-new, r=compiler-errors
[rust.git] / tests / ui / inference / newlambdas-ret-infer.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // Test that the lambda kind is inferred correctly as a return
5 // expression
6
7 // pretty-expanded FIXME #23616
8
9 fn unique() -> Box<dyn FnMut()+'static> { return Box::new(|| ()); }
10
11 pub fn main() {
12 }