]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-arg-out-of-scope.rs
Make `output_filenames` a real query
[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); }