summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-link-fn-args.rs
blob: 231407b226ee9c22abe78a9fddb510aca152b5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
// Test that region inference correctly links up the regions when a
// `ref` borrow occurs inside a fn argument.

// pretty-expanded FIXME #23616

#![allow(dead_code)]

fn with<'a, F>(_: F) where F: FnOnce(&'a Vec<isize>) -> &'a Vec<isize> { }

fn foo() {
    with(|&ref ints| ints);
}

fn main() { }