mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
16 lines
313 B
Rust
16 lines
313 B
Rust
// 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() { }
|