rust/tests/ui/type-alias-impl-trait/generic_duplicate_param_use...

13 lines
194 B
Rust

//@ check-pass
#![feature(type_alias_impl_trait)]
use std::fmt::Debug;
fn main() {}
type Two<T: Debug, U> = impl Debug;
fn two<T: Debug, U: Debug>(t: T, _: U) -> Two<T, U> {
(t, 4u32)
}