blob: 6ace103fdcfa5a3d818d9d1e6a48347e0a75ced1 [file]
error: comptime functions can only be called at compile time
--> $DIR/rustc_comptime.rs:10:5
|
10 | comptime(); // ERROR
| ^^^^^^^^^^
|
help: wrap the call in a const block to force compile time evaluation
|
10 | const { comptime() }; // ERROR
| +++++++ +
error: comptime functions can only be called at compile time
--> $DIR/rustc_comptime.rs:18:5
|
18 | comptime();
| ^^^^^^^^^^
|
help: wrap the call in a const block to force compile time evaluation
|
18 | const { comptime() };
| +++++++ +
error: aborting due to 2 previous errors