]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-expression-parameter.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / const-expression-parameter.full.stderr
1 error: expressions must be enclosed in braces to be used as const generic arguments
2   --> $DIR/const-expression-parameter.rs:16:20
3    |
4 LL |     i32_identity::<1 + 2>();
5    |                    ^^^^^
6    |
7 help: enclose the `const` expression in braces
8    |
9 LL |     i32_identity::<{ 1 + 2 }>();
10    |                    ^       ^
11
12 error: aborting due to previous error
13