]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_duplicate_param_use2.stderr
Rollup merge of #106732 - durin42:dmitrig-arrayref-ctor, r=nikic
[rust.git] / tests / ui / type-alias-impl-trait / generic_duplicate_param_use2.stderr
1 error[E0277]: `T` doesn't implement `Debug`
2   --> $DIR/generic_duplicate_param_use2.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: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.