rust/tests/ui/const-generics/early/const-expression-parameter.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

14 lines
371 B
Plaintext

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 1 previous error