From f0ecdfb1aba426684e166494a811a03086e76721 Mon Sep 17 00:00:00 2001 From: Sunjay Varma Date: Wed, 29 Nov 2017 14:11:41 -0500 Subject: [PATCH] Added case for when impl generic associated type has a where clause --- .../generic-associated-types-where.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/ui/rfc1598-generic-associated-types/generic-associated-types-where.rs b/src/test/ui/rfc1598-generic-associated-types/generic-associated-types-where.rs index af580aeccf7c..eec061bc96ba 100644 --- a/src/test/ui/rfc1598-generic-associated-types/generic-associated-types-where.rs +++ b/src/test/ui/rfc1598-generic-associated-types/generic-associated-types-where.rs @@ -20,6 +20,7 @@ use std::fmt::{Display, Debug}; trait Foo { type Assoc where Self: Sized; type Assoc2 where T: Display; + type Assoc3; type WithDefault where T: Debug = Iterator; type NoGenerics; } @@ -29,6 +30,7 @@ struct Bar; impl Foo for Bar { type Assoc = usize; type Assoc2 = Vec; + type Assoc3 where T: Iterator = Vec; type WithDefault<'a, T> = &'a Iterator; //~^ ERROR undeclared lifetime type NoGenerics = ::std::cell::Cell;