]> git.lizzy.rs Git - rust.git/blob - src/test/ui/e0119/complex-impl.stderr
1fc4c28d67c5d915ffe56548120ead49b9d28702
[rust.git] / src / test / ui / e0119 / complex-impl.stderr
1 error[E0119]: conflicting implementations of trait `complex_impl_support::External` for type `(Q, complex_impl_support::M<'_, '_, '_, std::boxed::Box<_>, _, _>)`:
2   --> $DIR/complex-impl.rs:19:1
3    |
4 LL | impl<R> External for (Q, R) {} //~ ERROR must be used
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: conflicting implementation in crate `complex_impl_support`:
8            - impl<'a, 'b, 'c, T, U, V, W> complex_impl_support::External for (T, complex_impl_support::M<'a, 'b, 'c, std::boxed::Box<U>, V, W>)
9              where <U as std::ops::FnOnce<(T,)>>::Output == V, <V as std::iter::Iterator>::Item == T, 'b : 'a, T : 'a, U: std::ops::FnOnce<(T,)>, U : 'static, V: std::iter::Iterator, V: std::clone::Clone, W: std::ops::Add, <W as std::ops::Add>::Output: std::marker::Copy;
10
11 error[E0210]: type parameter `R` must be used as the type parameter for some local type (e.g. `MyStruct<R>`)
12   --> $DIR/complex-impl.rs:19:1
13    |
14 LL | impl<R> External for (Q, R) {} //~ ERROR must be used
15    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `R` must be used as the type parameter for some local type
16    |
17    = note: only traits defined in the current crate can be implemented for a type parameter
18
19 error: aborting due to 2 previous errors
20
21 Some errors occurred: E0119, E0210.
22 For more information about an error, try `rustc --explain E0119`.