]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use10.rs
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use10.rs
index 898dab1b0b9602808b58671eb45540e2e7b3be66..c17d595dbb3ad23e07b33f73bad8e6b4dee960d8 100644 (file)
@@ -1,11 +1,11 @@
-// build-pass (FIXME(62277): could be check-pass?)
+// check-pass
 #![feature(type_alias_impl_trait)]
 
 use std::fmt::Debug;
 
 fn main() {}
 
-type Two<T, U> = impl Debug;
+type Two<T: Debug, U> = impl Debug;
 
 fn two<T: Debug, U: Debug>(t: T, _: U) -> Two<T, U> {
     (t, 4u32)