summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/vec-late-init.rs
blob: 5dee36082561cedd851ef4015fb52591bee38c09 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
#![allow(unused_mut)]


pub fn main() {
    let mut later: Vec<isize> ;
    if true { later = vec![1]; } else { later = vec![2]; }
    println!("{}", later[0]);
}