]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_duplicate_param_use8.rs
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / type-alias-impl-trait / generic_duplicate_param_use8.rs
1 #![feature(type_alias_impl_trait)]
2
3 use std::fmt::Debug;
4
5 fn main() {}
6
7 type Two<T, U> = impl Debug;
8
9 fn two<T: Debug, U: Debug>(t: T, _: U) -> Two<T, U> {
10     (t, 4u32)
11     //~^ ERROR `T` doesn't implement `Debug`
12 }
13
14 fn three<T: Debug, U: Debug>(_: T, u: U) -> Two<T, U> {
15     (u, 4u32)
16     //~^ ERROR `U` doesn't implement `Debug`
17 }