1 error[E0308]: mismatched types
2 --> $DIR/point-at-inference.rs:12:9
5 | - this is of type `&{integer}`, which causes `foo` to be inferred as `Vec<&{integer}>`
8 | --- ^^^ expected `i32`, found `&{integer}`
10 | arguments to this function are incorrect
12 = note: expected struct `Vec<i32>`
13 found struct `Vec<&{integer}>`
14 note: function defined here
15 --> $DIR/point-at-inference.rs:2:4
17 LL | fn bar(_: Vec<i32>) {}
19 help: consider dereferencing the borrow
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0308`.