Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
closures
/
print
/
closure-print-generic-trim-off-verbose-2.rs
blob: b6c7659bc724c9f2a3ce9fabc2dd36fb6d4602c5 [
file
] [
log
] [
blame
]
// compile-flags: -Ztrim-diagnostic-paths=off -Zverbose-internals
mod
mod1
{
pub
fn
f
<
T
:
std
::
fmt
::
Display
>(
t
:
T
)
{
let
x
=
20
;
let
c
=
||
println
!(
"{} {}"
,
t
,
x
);
let
c1
:
()
=
c
;
//~^ ERROR mismatched types
}
}
fn
main
()
{
mod1
::
f
(
5i32
);
}