Error code E0777
A literal value was used inside #[derive]
.
Erroneous code example:
ⓘ
Only paths to traits are allowed as argument inside #[derive]
. You can find
more information about the #[derive]
attribute in the Rust Book.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
A literal value was used inside #[derive]
.
Erroneous code example:
ⓘ
Only paths to traits are allowed as argument inside #[derive]
. You can find
more information about the #[derive]
attribute in the Rust Book.