error[E0308]: mismatched types --> f57.rs:11:9 | 5 | let mut foo = vec![]; | ------ here the type is `Vec<_>` ... 8 | foo.push(i); | ---- here the type of `foo` is inferred to be `Vec<&i32>` ... 11 | bar(foo); | --- ^^^ expected `i32`, found `&i32` | | | arguments to this function are incorrect | = note: expected struct `Vec<i32>` found struct `Vec<&i32>` note: function defined here --> f57.rs:1:4 | 1 | fn bar(_: Vec<i32>) {} | ^^^ -----------
https://media.hachyderm.io/media_attachments/files/109/622/152/178/076/845/original/75bd4f8058bc5bf2.png