]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_duplicate_param_use6.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / generic_duplicate_param_use6.stderr
1 error[E0277]: `T` doesn't implement `Debug`
2   --> $DIR/generic_duplicate_param_use6.rs:11:5
3    |
4 LL |     (t, t)
5    |     ^^^^^^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
6    |
7    = note: required for `(T, T)` to implement `Debug`
8 help: consider restricting type parameter `T`
9    |
10 LL | type Two<T: std::fmt::Debug, U> = impl Debug;
11    |           +++++++++++++++++
12
13 error[E0277]: `U` doesn't implement `Debug`
14   --> $DIR/generic_duplicate_param_use6.rs:16:5
15    |
16 LL |     (u, t)
17    |     ^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
18    |
19    = note: required for `(U, T)` to implement `Debug`
20 help: consider restricting type parameter `U`
21    |
22 LL | type Two<T, U: std::fmt::Debug> = impl Debug;
23    |              +++++++++++++++++
24
25 error[E0277]: `T` doesn't implement `Debug`
26   --> $DIR/generic_duplicate_param_use6.rs:16:5
27    |
28 LL |     (u, t)
29    |     ^^^^^^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
30    |
31    = note: required for `(U, T)` to implement `Debug`
32 help: consider restricting type parameter `T`
33    |
34 LL | type Two<T: std::fmt::Debug, U> = impl Debug;
35    |           +++++++++++++++++
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.