1 error: non-defining opaque type use in defining scope
2 --> $DIR/generic_duplicate_param_use.rs:12:30
4 LL | fn one_ty<T: Debug>(t: T) -> TwoTys<T, T> {
7 note: type used multiple times
8 --> $DIR/generic_duplicate_param_use.rs:8:13
10 LL | type TwoTys<T, U> = impl Debug;
13 error: non-defining opaque type use in defining scope
14 --> $DIR/generic_duplicate_param_use.rs:17:36
16 LL | fn one_lifetime<'a>(t: &'a u32) -> TwoLifetimes<'a, 'a> {
17 | ^^^^^^^^^^^^^^^^^^^^
19 note: lifetime used multiple times
20 --> $DIR/generic_duplicate_param_use.rs:9:19
22 LL | type TwoLifetimes<'a, 'b> = impl Debug;
25 error: non-defining opaque type use in defining scope
26 --> $DIR/generic_duplicate_param_use.rs:22:50
28 LL | fn one_const<const N: usize>(t: *mut [u8; N]) -> TwoConsts<N, N> {
31 note: constant used multiple times
32 --> $DIR/generic_duplicate_param_use.rs:10:22
34 LL | type TwoConsts<const X: usize, const Y: usize> = impl Debug;
37 error: aborting due to 3 previous errors