]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-arg-out-of-scope.rs
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[rust.git] / src / test / 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); }