]> git.proxmox.com Git - rustc.git/blob - tests/ui/inference/newlambdas-ret-infer2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / inference / newlambdas-ret-infer2.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> { Box::new(|| ()) }
10
11 pub fn main() {
12 }