]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-check/point-at-inference-2.stderr
Make `output_filenames` a real query
[rust.git] / tests / ui / type / type-check / point-at-inference-2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/point-at-inference-2.rs:5:9
3    |
4 LL |     bar(v);
5    |     --- ^ expected `i32`, found `&{integer}`
6    |     |
7    |     arguments to this function are incorrect
8    |
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
13    |
14 LL | fn bar(_: Vec<i32>) {}
15    |    ^^^ -----------
16
17 error[E0308]: mismatched types
18   --> $DIR/point-at-inference-2.rs:9:9
19    |
20 LL |     baz(&v);
21    |          - here the type of `v` is inferred to be `Vec<&i32>`
22 LL |     baz(&v);
23 LL |     bar(v);
24    |     --- ^ expected `i32`, found `&i32`
25    |     |
26    |     arguments to this function are incorrect
27    |
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
32    |
33 LL | fn bar(_: Vec<i32>) {}
34    |    ^^^ -----------
35
36 error[E0308]: mismatched types
37   --> $DIR/point-at-inference-2.rs:12:9
38    |
39 LL |     baz(&v);
40    |          - here the type of `v` is inferred to be `Vec<&i32>`
41 LL |     bar(v);
42    |     --- ^ expected `i32`, found `&i32`
43    |     |
44    |     arguments to this function are incorrect
45    |
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
50    |
51 LL | fn bar(_: Vec<i32>) {}
52    |    ^^^ -----------
53
54 error: aborting due to 3 previous errors
55
56 For more information about this error, try `rustc --explain E0308`.