Code
#[derive(Clone, Display)]
struct User;
fn main() {}
Current output
error: cannot find derive macro `Display` in this scope
--> $DIR/display-is-not-builtin-derive.rs:12:10
|
LL | Display,
| ^^^^^^^
Desired output
error: cannot find derive macro `Display` in this scope
--> $DIR/display-is-not-builtin-derive.rs:12:10
|
LL | Display,
| ^^^^^^^
note: trait `Display` can't be derived, you must `impl` it manually
--> path/to/display.rs
Rationale and extra context
We should likely have a link or explanation about why not all traits are automatically derivable.
Other cases
Rust Version
Anything else?
No response
Code
Current output
Desired output
Rationale and extra context
We should likely have a link or explanation about why not all traits are automatically derivable.
Other cases
Rust Version
Anything else?
No response