]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/associated-types-project-from-hrtb-explicit.stderr
Auto merge of #64432 - gnzlbg:simplify_truncate, r=alexcrichton
[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 help: you can escape reserved keywords to use them as identifiers
8    |
9 LL | fn foo2<I>(x: <I as r#for<'x> Foo<&'x isize>>::A)
10    |                     ^^^^^
11
12 error: expected one of `::` or `>`, found `Foo`
13   --> $DIR/associated-types-project-from-hrtb-explicit.rs:10:29
14    |
15 LL | fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A)
16    |                             ^^^ expected one of `::` or `>`
17
18 error: aborting due to 2 previous errors
19