about summary refs log tree commit diff
path: root/tests/ui/consts/rustc-impl-const-stability.stderr
blob: 55c08539688241331b22177cd2fbc3e89c652fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
error: const `impl` for trait `Debug` which is not `const`
  --> $DIR/rustc-impl-const-stability.rs:15:12
   |
LL | impl const std::fmt::Debug for Data {
   |            ^^^^^^^^^^^^^^^ this trait is not `const`
   |
   = note: marking a trait with `const` ensures all default method bodies are `const`
   = note: adding a non-const method body in the future would be a breaking change

error: aborting due to 1 previous error