mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
14 lines
371 B
Plaintext
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
|
|
|