Closed
Description
fn main() {
let x: &[uint] = &[1u];
let _y = &[x, &[1, 2]];
}
<anon>:3:19: 3:26 error: mismatched types: expected `&[uint]`, found `&[uint, .. 2]` (expected vector, found vector)
<anon>:3 let _y = &[x, &[1, 2]];
^~~~~~~
This may not be a bug, but it does mean that slices constructed like this need to have type annotations.