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