]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-55796.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-55796.rs
index b48d4a9c022f42dbe1aadab24058278dd2aef4a9..a172f6a7bfad140c4d70b216953fa7a5fe2aa2e6 100644 (file)
@@ -14,9 +14,11 @@ pub trait Graph<'a> {
 
     fn out_neighbors(&'a self, u: &Self::Node) -> Box<Iterator<Item = Self::Node>> {
         Box::new(self.out_edges(u).map(|e| e.target()))
+//~^ ERROR cannot infer
     }
 
     fn in_neighbors(&'a self, u: &Self::Node) -> Box<Iterator<Item = Self::Node>> {
         Box::new(self.in_edges(u).map(|e| e.target()))
+//~^ ERROR cannot infer
     }
 }