]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use2.rs
Rollup merge of #92917 - jackh726:issue-91762-2, r=nikomatsakis
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use2.rs
index 04fb57b39c052c3467fb45d3a7a3ab6cde829cc1..81bf9770d02a8b3cf7367f6f3407a3febcb9d470 100644 (file)
@@ -8,11 +8,6 @@ fn main() {}
 type Two<T, U> = impl Debug;
 //~^ ERROR `T` doesn't implement `Debug`
 
-fn one<T: Debug>(t: T) -> Two<T, T> {
-    //~^ ERROR non-defining opaque type use in defining scope
-    t
-}
-
 fn two<T: Debug, U>(t: T, _: U) -> Two<T, U> {
     t
 }