2025-07-13 16:49:19 +08:00
|
|
|
error: const `impl` for trait `Debug` which is not `const`
|
2024-10-30 18:03:44 +00:00
|
|
|
--> $DIR/rustc-impl-const-stability.rs:15:12
|
2023-04-16 11:12:37 +00:00
|
|
|
|
|
2024-12-21 20:25:43 +00:00
|
|
|
LL | impl const std::fmt::Debug for Data {
|
|
|
|
|
| ^^^^^^^^^^^^^^^ this trait is not `const`
|
2023-04-16 11:12:37 +00:00
|
|
|
|
|
2025-07-13 16:49:19 +08:00
|
|
|
= note: marking a trait with `const` ensures all default method bodies are `const`
|
2023-04-16 11:12:37 +00:00
|
|
|
= note: adding a non-const method body in the future would be a breaking change
|
|
|
|
|
|
2024-06-30 17:08:45 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-04-16 11:12:37 +00:00
|
|
|
|