]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use4.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use4.stderr
1 error[E0277]: `U` doesn't implement `Debug`
2 --> $DIR/generic_duplicate_param_use4.rs:8:18
3 |
4 LL | type Two<T, U> = impl Debug;
5 | ^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
6 |
7 help: consider restricting type parameter `U`
8 |
9 LL | type Two<T, U: std::fmt::Debug> = impl Debug;
10 | +++++++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.