Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
inference
/
newlambdas-ret-infer.rs
blob: 980a2fdd905f6632af75e530df84d305314dc63a [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
// Test that the lambda kind is inferred correctly as a return
// expression
fn
unique
()
->
Box
<
dyn
FnMut
()+
'
static
>
{
return
Box
::
new
(||
());
}
pub
fn
main
()
{
}