]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/complex.stderr
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / argument-suggestions / complex.stderr
1 error[E0308]: arguments to this function are incorrect
2   --> $DIR/complex.rs:14:3
3    |
4 LL |   complex(1.0, H {}, &"", G{}, F::X2, Z {}, X {}, Y {});
5    |   ^^^^^^^ --- expected `u32`, found floating-point number
6    |
7 note: function defined here
8   --> $DIR/complex.rs:11:4
9    |
10 LL | fn complex(_i: u32, _s: &str, _e: E, _f: F, _g: G, _x: X, _y: Y, _z: Z ) {}
11    |    ^^^^^^^ -------  --------  -----  -----  -----  -----  -----  -----
12 help: did you mean
13    |
14 LL |   complex(/* u32 */, &"", /* E */, F::X2, G{}, X {}, Y {}, Z {});
15    |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.