1 error: non-defining opaque type use in defining scope
2 --> $DIR/generic_duplicate_param_use4.rs:11:27
4 LL | fn one<T: Debug>(t: T) -> Two<T, T> {
7 note: type used multiple times
8 --> $DIR/generic_duplicate_param_use4.rs:8:10
10 LL | type Two<T, U> = impl Debug;
13 error[E0277]: `U` doesn't implement `Debug`
14 --> $DIR/generic_duplicate_param_use4.rs:8:18
16 LL | type Two<T, U> = impl Debug;
17 | ^^^^^^^^^^ `U` cannot be formatted using `{:?}` because it doesn't implement `Debug`
19 help: consider restricting type parameter `U`
21 LL | type Two<T, U: std::fmt::Debug> = impl Debug;
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0277`.