]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-69455.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / issues / issue-69455.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/issue-69455.rs:29:20
3    |
4 LL |     println!("{}", 23u64.test(xs.iter().sum()));
5    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the associated function `new_display`
6    |
7    = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
8 help: consider specifying the generic argument
9    |
10 LL |     println!("{}", 23u64.test(xs.iter().sum())::<T>);
11    |                                               +++++
12
13 error[E0283]: type annotations needed
14   --> $DIR/issue-69455.rs:29:41
15    |
16 LL |     println!("{}", 23u64.test(xs.iter().sum()));
17    |                          ----           ^^^ cannot infer type of the type parameter `S` declared on the associated function `sum`
18    |                          |
19    |                          required by a bound introduced by this call
20    |
21 note: multiple `impl`s satisfying `u64: Test<_>` found
22   --> $DIR/issue-69455.rs:11:1
23    |
24 LL | impl Test<u32> for u64 {
25    | ^^^^^^^^^^^^^^^^^^^^^^
26 ...
27 LL | impl Test<u64> for u64 {
28    | ^^^^^^^^^^^^^^^^^^^^^^
29 help: consider specifying the generic argument
30    |
31 LL |     println!("{}", 23u64.test(xs.iter().sum::<S>()));
32    |                                            +++++
33
34 error: aborting due to 2 previous errors
35
36 Some errors have detailed explanations: E0282, E0283.
37 For more information about an error, try `rustc --explain E0282`.