Full list of `impl const Default` types: - () - bool - char - Cell - std::ascii::Char - usize - u8 - u16 - u32 - u64 - u128 - i8 - i16 - i32 - i64 - i128 - f16 - f32 - f64 - f128 - std::marker::PhantomData<T> - Option<T> - std::iter::Empty<T> - std::ptr::Alignment - &[T] - &mut [T] - &str - &mut str - String - Vec<T>
11 lines
458 B
Text
11 lines
458 B
Text
error: const `impl` for trait `Debug` which is not marked with `#[const_trait]`
|
|
--> $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_trait]` 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
|
|
|