]> git.lizzy.rs Git - rust.git/blob - src/test/ui/newlambdas-ret-infer.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / 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 }