Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
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
);
}