Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 313 Bytes
// 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() { }
You can’t perform that action at this time.