Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 284 Bytes
// run-pass
// Test lifetimes are linked properly when we autoslice a vector.
// Issue #3148.
// pretty-expanded FIXME #23616
fn subslice<F>(v: F) -> F where F: FnOnce() { v }
fn both<F>(v: F) -> F where F: FnOnce() {
subslice(subslice(v))
}
pub fn main() {
both(main);
}
You can’t perform that action at this time.