31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
error[E0658]: use of unstable library feature `derive_const`
|
|
--> $DIR/derive-const-gate.rs:1:3
|
|
|
|
|
LL | #[derive_const(Debug)]
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= help: add `#![feature(derive_const)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: const `impl` for trait `Debug` which is not `const`
|
|
--> $DIR/derive-const-gate.rs:1:16
|
|
|
|
|
LL | #[derive_const(Debug)]
|
|
| ^^^^^ 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[E0015]: cannot call non-const method `Formatter::<'_>::write_str` in constant functions
|
|
--> $DIR/derive-const-gate.rs:1:16
|
|
|
|
|
LL | #[derive_const(Debug)]
|
|
| ^^^^^
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
Some errors have detailed explanations: E0015, E0658.
|
|
For more information about an error, try `rustc --explain E0015`.
|