]> git.lizzy.rs Git - rust.git/blob - src/test/ui/newlambdas-ret-infer2.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / 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 }