// Test lifetimes are linked properly when we autoslice a vector.
// Issue #3148.
+use std::vec_ng::Vec;
+
fn subslice1<'r>(v: &'r [uint]) -> &'r [uint] { v }
fn both<'r>(v: &'r [uint]) -> &'r [uint] {
pub fn main() {
let v = vec!(1,2,3);
- both(v);
+ both(v.as_slice());
}