2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2014-12-02 01:42:11 -06:00
|
|
|
// Test that region inference correctly links up the regions when a
|
|
|
|
// `ref` borrow occurs inside a fn argument.
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-12-02 01:42:11 -06:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn with<'a, F>(_: F) where F: FnOnce(&'a Vec<isize>) -> &'a Vec<isize> { }
|
2014-12-02 01:42:11 -06:00
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
with(|&ref ints| ints);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|