]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/associated-types-coherence-failure.rs
Make name resolution errors non-fatal
[rust.git] / src / test / compile-fail / associated-types-coherence-failure.rs
index 915cb077787ea41c05330ce1185ce497633afac0..6d68da54112f24da473b778e0780319813873246 100644 (file)
@@ -32,13 +32,13 @@ fn into_cow(self) -> Cow<'a, B> {
 impl<'a, B: ?Sized> IntoCow<'a, B> for <B as ToOwned>::Owned where B: ToOwned {
 //~^ ERROR E0119
     fn into_cow(self) -> Cow<'a, B> {
-        Cow
+        Cow(PhantomData)
     }
 }
 
 impl<'a, B: ?Sized> IntoCow<'a, B> for &'a B where B: ToOwned {
     fn into_cow(self) -> Cow<'a, B> {
-        Cow
+        Cow(PhantomData)
     }
 }