]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/associated-types-project-from-hrtb-explicit.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / associated-types-project-from-hrtb-explicit.stderr
1 error: expected identifier, found keyword `for`
2   --> $DIR/associated-types-project-from-hrtb-explicit.rs:10:21
3    |
4 LL | fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A)
5    |                     ^^^ expected identifier, found keyword
6
7 error: expected one of `::` or `>`, found `Foo`
8   --> $DIR/associated-types-project-from-hrtb-explicit.rs:10:29
9    |
10 LL | fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A)
11    |                             ^^^ expected one of `::` or `>`
12
13 error: aborting due to 2 previous errors
14