1 error[E0308]: mismatched types
2 --> $DIR/point-at-inference-2.rs:5:9
5 | --- ^ expected `i32`, found `&{integer}`
7 | arguments to this function are incorrect
9 = note: expected struct `Vec<i32>`
10 found struct `Vec<&{integer}>`
11 note: function defined here
12 --> $DIR/point-at-inference-2.rs:1:4
14 LL | fn bar(_: Vec<i32>) {}
17 error[E0308]: mismatched types
18 --> $DIR/point-at-inference-2.rs:9:9
21 | - here the type of `v` is inferred to be `Vec<&i32>`
24 | --- ^ expected `i32`, found `&i32`
26 | arguments to this function are incorrect
28 = note: expected struct `Vec<i32>`
29 found struct `Vec<&i32>`
30 note: function defined here
31 --> $DIR/point-at-inference-2.rs:1:4
33 LL | fn bar(_: Vec<i32>) {}
36 error[E0308]: mismatched types
37 --> $DIR/point-at-inference-2.rs:12:9
40 | - here the type of `v` is inferred to be `Vec<&i32>`
42 | --- ^ expected `i32`, found `&i32`
44 | arguments to this function are incorrect
46 = note: expected struct `Vec<i32>`
47 found struct `Vec<&i32>`
48 note: function defined here
49 --> $DIR/point-at-inference-2.rs:1:4
51 LL | fn bar(_: Vec<i32>) {}
54 error: aborting due to 3 previous errors
56 For more information about this error, try `rustc --explain E0308`.