🚀Question 197: What happens here?🦀 fn main() { let mut v = vec! [1, 2, 3 ] ; let a = &v[0] ; v.push(4) ; println!("{}", a) ; }
2
0
13
2K
1
@code_rusty There is a mix in mutable and immutable referencing.
@code_rusty immutable borrow 'a' to a part of 'v' needs to end before 'v' is mutably borrowed