]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/newlambdas-ret-infer2.rs
Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviper
[rust.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 }