]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-link-fn-args.rs
Apply suggestions from code review
[rust.git] / src / test / ui / regions / regions-link-fn-args.rs
1 // run-pass
2 // Test that region inference correctly links up the regions when a
3 // `ref` borrow occurs inside a fn argument.
4
5 // pretty-expanded FIXME #23616
6
7 #![allow(dead_code)]
8
9 fn with<'a, F>(_: F) where F: FnOnce(&'a Vec<isize>) -> &'a Vec<isize> { }
10
11 fn foo() {
12     with(|&ref ints| ints);
13 }
14
15 fn main() { }