]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/issue-79422.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / generic-associated-types / issue-79422.rs
index 47ef38ff45d65beadccc13496883013c7420e21d..b9a3c583f7c89991f59db5571622016ad08f01bc 100644 (file)
@@ -22,7 +22,7 @@ trait MapLike<K, V> {
 }
 
 impl<K: Ord, V: 'static> MapLike<K, V> for std::collections::BTreeMap<K, V> {
-    type VRefCont<'a> where Self: 'a = &'a V;
+    type VRefCont<'a> = &'a V where Self: 'a;
     fn get<'a>(&'a self, key: &K) -> Option<&'a V> {
         std::collections::BTreeMap::get(self, key)
     }