]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr
Rollup merge of #107325 - petrochenkov:hiddoc2, r=GuillaumeGomez
[rust.git] / tests / ui / type-alias-impl-trait / generic_duplicate_param_use3.stderr
1 error[E0277]: `T` doesn't implement `Debug`
2   --> $DIR/generic_duplicate_param_use3.rs:11:5
3    |
4 LL |     t
5    |     ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
6    |
7 help: consider restricting type parameter `T`
8    |
9 LL | type Two<T: std::fmt::Debug, U> = impl Debug;
10    |           +++++++++++++++++
11
12 error[E0277]: `U` doesn't implement `Debug`
13   --> $DIR/generic_duplicate_param_use3.rs:16:5
14    |
15 LL |     u
16    |     ^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
17    |
18 help: consider restricting type parameter `U`
19    |
20 LL | type Two<T, U: std::fmt::Debug> = impl Debug;
21    |              +++++++++++++++++
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0277`.