Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
suggestions
/
suggest-boxed-empty-block.rs
blob: 47fb08e4d11f55b9b1d474508c06391f03bc45cc [
file
] [
log
] [
blame
]
//@ 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
}