]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/construct_with_other_type.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / generic-associated-types / construct_with_other_type.rs
index 9ae328cc48b1d988d8a9fecd3632987ab2d8a219..060804269aa70a6a18d07010a10d19f743c8b7a2 100644 (file)
@@ -16,9 +16,9 @@ trait Baz {
 }
 
 impl<T> Baz for T where T: Foo {
-    type Quux<'a> where T: 'a = T;
+    type Quux<'a> = T where T: 'a;
 
-    type Baa<'a> where T: 'a = &'a <T as Foo>::Bar<'a, 'static>;
+    type Baa<'a> = &'a <T as Foo>::Bar<'a, 'static> where T: 'a;
 }
 
 fn main() {}