]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/parse/trait-path-expressions.stderr
272afc10b17b54659809cc42c53f8665b78b819f
[rust.git] / src / test / ui / generic-associated-types / parse / trait-path-expressions.stderr
1 error: expected expression, found `)`
2   --> $DIR/trait-path-expressions.rs:8:39
3    |
4 LL |   fn f1<'a>(arg : Box<dyn X< 1 = 32 >>) {}
5    |                              -        ^ expected expression
6    |                              |
7    |                              while parsing a const generic argument starting here
8
9 error: expected one of `,`, `:`, or `>`, found `=`
10   --> $DIR/trait-path-expressions.rs:18:36
11    |
12 LL |   fn f2<'a>(arg : Box<dyn X< { 1 } = 32 >>) {}
13    |                                  - ^ expected one of `,`, `:`, or `>`
14    |                                  |
15    |                                  maybe try to close unmatched angle bracket
16    |
17 help: you might have meant to end the type parameters here
18    |
19 LL |   fn f2<'a>(arg : Box<dyn X< { 1 }> = 32 >>) {}
20    |                                   +
21
22 error: aborting due to 2 previous errors
23