2022-06-19 20:13:08 -07:00
error[E0015]: cannot call non-const formatting macro in constant functions
2023-03-27 14:43:17 +02:00
--> $DIR/format.rs:2:13
2022-06-19 20:13:08 -07:00
|
LL | panic!("{:?}", 0);
2023-03-27 14:43:17 +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-01-05 20:49:04 -03:00
--> $DIR/format.rs:7:15
2022-06-19 20:13:08 -07:00
|
LL | println!("{:?}", 0);
2023-03-27 14:43:17 +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
2022-06-20 19:25:52 -07:00
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of 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-01-05 20:49:04 -03:00
error: aborting due to 3 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`.