I'm going thru "the book" and in listing 8-4:
fn main() {
let v: Vec<i32> = vec![1, 2, 3, 4, 5];
let third: &i32 = &v[2];
println!("v={:#?}", third);
}
the third line references the "i32" (let third: &i32 = ...). Why reference a type? I understand why you'd want to reference a variable, but why a type?
Thanks!