]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/gat-in-trait-path.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / generic-associated-types / gat-in-trait-path.rs
index fb03a86e169715df91c5d4bcaae07a096c4f359b..7bbcf950ae183c20f7b6c6adda8296ebdf18a955 100644 (file)
@@ -15,7 +15,7 @@ impl Foo for Fooy {
 struct Fooer<T>(T);
 
 impl<T> Foo for Fooer<T> {
-    type A<'x> where T: 'x = &'x ();
+    type A<'x> = &'x () where T: 'x;
 }
 
 fn f(_arg : Box<dyn for<'a> Foo<A<'a> = &'a ()>>) {}