summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-expression-parameter.min.stderr
blob: 0615a4c206d80745b38aac7653302939f394b08c (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:16:20
   |
LL |     i32_identity::<1 + 2>();
   |                    ^^^^^
   |
help: enclose the `const` expression in braces
   |
LL |     i32_identity::<{ 1 + 2 }>();
   |                    ^       ^

error: aborting due to previous error