]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/too-long.stderr
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / argument-suggestions / too-long.stderr
1 error[E0308]: mismatched types
2   --> $DIR/too-long.rs:37:28
3    |
4 LL |     qux.foo(a, b, c, d, e, f, g, h, i, j, k, l);
5    |         ---                ^ expected `i32`, found `&i32`
6    |         |
7    |         arguments to this function are incorrect
8    |
9 note: associated function defined here
10   --> $DIR/too-long.rs:4:8
11    |
12 LL |     fn foo(
13    |        ^^^
14 ...
15 LL |         f: i32,
16    |         ------
17 help: consider dereferencing the borrow
18    |
19 LL |     qux.foo(a, b, c, d, e, *f, g, h, i, j, k, l);
20    |                            +
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0308`.