]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-69683.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-69683.stderr
1 error[E0284]: type annotations needed: cannot satisfy `<u8 as Element<_>>::Array == [u8; 3]`
2 --> $DIR/issue-69683.rs:30:10
3 |
4 LL | 0u16.foo(b);
5 | ^^^ cannot satisfy `<u8 as Element<_>>::Array == [u8; 3]`
6
7 error[E0283]: type annotations needed
8 --> $DIR/issue-69683.rs:30:10
9 |
10 LL | 0u16.foo(b);
11 | ^^^
12 |
13 note: multiple `impl`s satisfying `u8: Element<_>` found
14 --> $DIR/issue-69683.rs:5:1
15 |
16 LL | impl<T> Element<()> for T {
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^
18 ...
19 LL | impl<T: Element<S>, S> Element<[S; 3]> for T {
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 note: required by a bound in `Foo::foo`
22 --> $DIR/issue-69683.rs:15:9
23 |
24 LL | u8: Element<I>,
25 | ^^^^^^^^^^ required by this bound in `Foo::foo`
26 LL | {
27 LL | fn foo(self, x: <u8 as Element<I>>::Array);
28 | --- required by a bound in this
29 help: try using a fully qualified path to specify the expected types
30 |
31 LL | <u16 as Foo<I>>::foo(0u16, b);
32 | +++++++++++++++++++++ ~
33
34 error: aborting due to 2 previous errors
35
36 Some errors have detailed explanations: E0283, E0284.
37 For more information about an error, try `rustc --explain E0283`.