1 error[E0401]: can't use type parameters from outer function
2 --> $DIR/type-arg-out-of-scope.rs:13:25
5 | - type variable from outer function
6 LL | fn bar(f: Box<FnMut(T) -> T>) { }
7 | --- ^ use of type variable from outer function
9 | help: try using a local type parameter instead: `bar<T>`
11 error[E0401]: can't use type parameters from outer function
12 --> $DIR/type-arg-out-of-scope.rs:13:31
14 LL | fn foo<T>(x: T) {
15 | - type variable from outer function
16 LL | fn bar(f: Box<FnMut(T) -> T>) { }
17 | --- ^ use of type variable from outer function
19 | help: try using a local type parameter instead: `bar<T>`
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0401`.