summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/early/const-expression-parameter.stderr
blob: 4ce1be25edb93cdbfde7e2e1bfe55dae0f516bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expressions must be enclosed in braces to be used as const generic arguments
  --> $DIR/const-expression-parameter.rs:10:20
   |
LL |     i32_identity::<1 + 2>();
   |                    ^^^^^
   |
help: enclose the `const` expression in braces
   |
LL |     i32_identity::<{ 1 + 2 }>();
   |                    +       +

error: aborting due to previous error