blob: 5fed86d504870c896fb0a4407f2d32050e3796c4 [file] [log] [blame]
//@ 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() { }