Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
issues
/
issue-5216.rs
blob: fd490884fa1fcf2e16aa9df947e49b6d1a59e701 [
file
] [
log
] [
blame
]
fn
f
()
{
}
struct
S
(
Box
<
FnMut
()>);
pub
static
C
:
S
=
S
(
f
);
//~ ERROR mismatched types
fn
g
()
{
}
type
T
=
Box
<
FnMut
()>;
pub
static
D
:
T
=
g
;
//~ ERROR mismatched types
fn
main
()
{}