1 error[E0282]: type annotations needed
2 --> $DIR/issue-69455.rs:29:20
5 | ------------ `<Self as Test<Rhs>>::Output` defined here
7 LL | println!("{}", 23u64.test(xs.iter().sum()));
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 | this method call resolves to `<Self as Test<Rhs>>::Output`
11 | cannot infer type for type parameter `T` declared on the associated function `new_display`
13 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
15 error[E0283]: type annotations needed
16 --> $DIR/issue-69455.rs:29:26
18 LL | println!("{}", 23u64.test(xs.iter().sum()));
19 | ^^^^ cannot infer type for type parameter `Rhs` declared on the trait `Test`
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 type argument in the method call
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`.