Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
suggest-boxed-empty-block.rs
blob: 9a8d6498fb149aea8b3b16d22ab7cf2df8678ee8 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
async_closure
)]
//@ edition:2021
//@ run-rustfix
fn
foo
<
T
>(
_
:
Box
<
T
>)
{}
fn
bar
<
T
>(
_
:
impl
Fn
()
->
Box
<
T
>)
{}
fn
main
()
{
foo
({});
//~ ERROR mismatched types
bar
(||
{});
//~ ERROR mismatched types
}