]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-103143.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / issue-103143.stderr
1 error: invalid const generic expression
2   --> $DIR/issue-103143.rs:2:13
3    |
4 LL |     x::<#[a]y::<z>>
5    |             ^^^^^^
6    |
7 help: expressions must be enclosed in braces to be used as const generic arguments
8    |
9 LL |     x::<#[a]{ y::<z> }>
10    |             +        +
11
12 error[E0425]: cannot find value `x` in this scope
13   --> $DIR/issue-103143.rs:2:5
14    |
15 LL |     x::<#[a]y::<z>>
16    |     ^ not found in this scope
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0425`.