error: non-defining opaque type use in defining scope --> $DIR/generic_duplicate_param_use.rs:14:30 | LL | fn one_ty(t: T) -> TwoTys { | ^^^^^^^^^^^^ | note: type used multiple times --> $DIR/generic_duplicate_param_use.rs:10:13 | LL | type TwoTys = impl Debug; | ^ ^ error: non-defining opaque type use in defining scope --> $DIR/generic_duplicate_param_use.rs:19:36 | LL | fn one_lifetime<'a>(t: &'a u32) -> TwoLifetimes<'a, 'a> { | ^^^^^^^^^^^^^^^^^^^^ | note: lifetime used multiple times --> $DIR/generic_duplicate_param_use.rs:11:19 | LL | type TwoLifetimes<'a, 'b> = impl Debug; | ^^ ^^ error: non-defining opaque type use in defining scope --> $DIR/generic_duplicate_param_use.rs:24:50 | LL | fn one_const(t: *mut [u8; N]) -> TwoConsts { | ^^^^^^^^^^^^^^^ | note: constant used multiple times --> $DIR/generic_duplicate_param_use.rs:12:22 | LL | type TwoConsts = impl Debug; | ^ ^ error: aborting due to 3 previous errors