summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-arg-out-of-scope.rs
blob: 02aad00770793ec8fc0176844e31b7f40ab7bbd0 (plain)
1
2
3
4
5
// error-pattern:can't use generic parameters from outer function
fn foo<T>(x: T) {
    fn bar(f: Box<dyn FnMut(T) -> T>) { }
}
fn main() { foo(1); }