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 af580aeccf7..eec061bc96b 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;