Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
type
/
type-arg-out-of-scope.rs
blob: 02aad00770793ec8fc0176844e31b7f40ab7bbd0 [
file
] [
log
] [
blame
]
// error-pattern:can't use generic parameters from outer function
fn
foo
<
T
>(
x
:
T
)
{
fn
bar
(
f
:
Box
<
dyn
FnMut
(
T
)
->
T
>)
{
}
}
fn
main
()
{
foo
(
1
);
}