1 error[E0282]: type annotations needed
2 --> $DIR/issue-69455.rs:29:20
4 LL | println!("{}", 23u64.test(xs.iter().sum()));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the associated function `new_display`
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
10 LL | println!("{}", 23u64.test(xs.iter().sum())::<T>);
13 error[E0283]: type annotations needed
14 --> $DIR/issue-69455.rs:29:41
16 LL | println!("{}", 23u64.test(xs.iter().sum()));
17 | ---- ^^^ cannot infer type of the type parameter `S` declared on the associated function `sum`
19 | required by a bound introduced by this call
21 note: multiple `impl`s satisfying `u64: Test<_>` found
22 --> $DIR/issue-69455.rs:11:1
24 LL | impl Test<u32> for u64 {
25 | ^^^^^^^^^^^^^^^^^^^^^^
27 LL | impl Test<u64> for u64 {
28 | ^^^^^^^^^^^^^^^^^^^^^^
29 help: consider specifying the generic argument
31 LL | println!("{}", 23u64.test(xs.iter().sum::<S>()));
34 error: aborting due to 2 previous errors
36 Some errors have detailed explanations: E0282, E0283.
37 For more information about an error, try `rustc --explain E0282`.