Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
type
/
type-arg-out-of-scope.rs
blob: 05ed54ec832f2ab2dfd85d5ce2ff1c4b49e5b55c [
file
] [
log
] [
blame
]
fn
foo
<
T
>(
x
:
T
)
{
fn
bar
(
f
:
Box
<
dyn
FnMut
(
T
)
->
T
>)
{
}
//~^ ERROR can't use generic parameters from outer item
//~| ERROR can't use generic parameters from outer item
}
fn
main
()
{
foo
(
1
);
}