]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-arg-out-of-scope.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / type / type-arg-out-of-scope.rs
1 // error-pattern:can't use generic parameters from outer function
2 fn foo<T>(x: T) {
3     fn bar(f: Box<dyn FnMut(T) -> T>) { }
4 }
5 fn main() { foo(1); }