]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/issue-58887.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-58887.rs
index 92ba50ae6cf1fe4901e0ebec50dee96eef04254e..96ac7860283ac3b6f63e53dbd34def8a7095ccae 100644 (file)
@@ -1,3 +1,5 @@
+// run-pass
+
 #![feature(type_alias_impl_trait)]
 
 trait UnwrapItemsExt {
@@ -11,11 +13,8 @@ where
     E: std::fmt::Debug,
 {
     type Iter = impl Iterator<Item = T>;
-    //~^ ERROR: could not find defining uses
 
     fn unwrap_items(self) -> Self::Iter {
-    //~^ ERROR: type parameter `T` is part of concrete type
-    //~| ERROR: type parameter `E` is part of concrete type
         self.map(|x| x.unwrap())
     }
 }