]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/newlambdas-ret-infer2.rs
Auto merge of #61817 - eddyb:begone-gcx-attempt-2, r=oli-obk
[rust.git] / src / test / run-pass / newlambdas-ret-infer2.rs
1 #![allow(dead_code)]
2 // Test that the lambda kind is inferred correctly as a return
3 // expression
4
5 // pretty-expanded FIXME #23616
6
7 fn unique() -> Box<dyn FnMut()+'static> { Box::new(|| ()) }
8
9 pub fn main() {
10 }