]> git.proxmox.com Git - rustc.git/blame - src/test/ui/error-codes/e0119/complex-impl.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / error-codes / e0119 / complex-impl.stderr
CommitLineData
cdc7bbd5 1error[E0119]: conflicting implementations of trait `complex_impl_support::External` for type `(Q, complex_impl_support::M<'_, '_, '_, std::boxed::Box<_>, _, _>)`
0731742a 2 --> $DIR/complex-impl.rs:9:1
abe05a73 3 |
532ac7d7 4LL | impl<R> External for (Q, R) {}
ff7c6d11 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
abe05a73
XL
6 |
7 = note: conflicting implementation in crate `complex_impl_support`:
1b1a35ee
XL
8 - impl<'a, 'b, 'c, T, U, V, W> External for (T, M<'a, 'b, 'c, Box<U>, V, W>)
9 where <U as FnOnce<(T,)>>::Output == V, <V as Iterator>::Item == T, 'b: 'a, T: 'a, U: FnOnce<(T,)>, U: 'static, V: Iterator, V: Clone, W: Add, <W as Add>::Output: Copy;
abe05a73 10
60c5eb7d
XL
11error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
12 --> $DIR/complex-impl.rs:9:1
abe05a73 13 |
532ac7d7 14LL | impl<R> External for (Q, R) {}
60c5eb7d
XL
15 | ^^^^^^^^^^^^^^^^^^^^^------
16 | | |
17 | | this is not defined in the current crate because tuples are always foreign
18 | impl doesn't use only types from inside the current crate
0531ce1d 19 |
60c5eb7d 20 = note: define and implement a trait or new type instead
abe05a73
XL
21
22error: aborting due to 2 previous errors
23
60c5eb7d
XL
24Some errors have detailed explanations: E0117, E0119.
25For more information about an error, try `rustc --explain E0117`.