rust/tests/ui/const-generics/early/const-expression-parameter.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
369 B
Plaintext
Raw Normal View History

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