diff options
Diffstat (limited to 'src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs')
-rw-r--r-- | src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs b/src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs deleted file mode 100644 index b238a9ca2..000000000 --- a/src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs +++ /dev/null @@ -1,16 +0,0 @@ -// Test you can't use a higher-ranked trait bound inside of a qualified -// path (just won't parse). - -pub trait Foo<T> { - type A; - - fn get(&self, t: T) -> Self::A; -} - -fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A) - //~^ ERROR expected identifier, found keyword `for` - //~| ERROR expected one of `::` or `>` -{ -} - -pub fn main() {} |