]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use2.rs
Rollup merge of #91950 - estebank:point-at-type-of-non-allocator, r=matthewjasper
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use2.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 //~^ ERROR `T` doesn't implement `Debug`
10
11 fn two<T: Debug, U>(t: T, _: U) -> Two<T, U> {
12     t
13 }