]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use6.rs
Add test for issue-63279
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use6.rs
1 #![feature(type_alias_impl_trait)]
2
3 use std::fmt::Debug;
4
5 fn main() {}
6
7 // test that unused generic parameters are ok
8 type Two<T, U> = impl Debug;
9
10 fn two<T: Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
11     (t, t)
12 }
13
14 fn three<T: Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
15 //~^ concrete type differs from previous
16     (u, t)
17 }