]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-arg-out-of-scope.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[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); }