You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, sorry. This is a doc issue. #[derive(Show)] works. The Rust reference still describes deriving.
jimblandy
changed the title
#[deriving(Show)] doesn't derive Show
Rust Reference still talks about #[deriving(...)], instead of #[derive(...)]
Jan 12, 2015
It seems that
#[deriving(Show)]
has stopped defining theShow
trait for structs.In the code below, if I remove the
#[cfg(skip)]
before the explicit Show derivation, the program runs correctly.The text was updated successfully, but these errors were encountered: