2022-06-19 20:13:08 -07:00
|
|
|
error[E0015]: cannot call non-const formatting macro in constant functions
|
2025-05-01 11:53:51 +02:00
|
|
|
--> $DIR/format.rs:2:5
|
2022-06-19 20:13:08 -07:00
|
|
|
|
|
|
|
|
|
LL | panic!("{:?}", 0);
|
2025-05-01 11:53:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-06-19 20:13:08 -07:00
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
|
|
|
|
|
error[E0015]: cannot call non-const formatting macro in constant functions
|
2025-05-01 11:53:51 +02:00
|
|
|
--> $DIR/format.rs:7:5
|
2022-06-19 20:13:08 -07:00
|
|
|
|
|
|
|
|
|
LL | println!("{:?}", 0);
|
2025-05-01 11:53:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2022-06-19 20:13:08 -07:00
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
2025-06-16 17:51:29 +02:00
|
|
|
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-06-19 20:13:08 -07:00
|
|
|
|
2024-12-23 21:49:48 +00:00
|
|
|
error[E0015]: cannot call non-const function `_print` in constant functions
|
2025-01-05 20:49:04 -03:00
|
|
|
--> $DIR/format.rs:7:5
|
2022-06-19 20:13:08 -07:00
|
|
|
|
|
|
|
|
|
LL | println!("{:?}", 0);
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
2025-04-30 13:18:21 +02:00
|
|
|
error[E0015]: cannot call non-const formatting macro in constant functions
|
|
|
|
|
--> $DIR/format.rs:13:5
|
|
|
|
|
|
|
|
|
|
|
LL | format_args!("{}", 0);
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2022-06-19 20:13:08 -07:00
|
|
|
|
2022-11-15 12:06:20 +01:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|