]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-69455.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-69455.stderr
1 error[E0282]: type annotations needed
2 --> $DIR/issue-69455.rs:29:20
3 |
4 LL | type Output;
5 | ------------ `<Self as Test<Rhs>>::Output` defined here
6 ...
7 LL | println!("{}", 23u64.test(xs.iter().sum()));
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 | |
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`
12 |
13 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0283]: type annotations needed
16 --> $DIR/issue-69455.rs:29:26
17 |
18 LL | println!("{}", 23u64.test(xs.iter().sum()));
19 | ^^^^ cannot infer type for type parameter `Rhs` declared on the trait `Test`
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 type argument in the method call
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`.