Open
Description
openedon Oct 20, 2022
When conditionally deriving a trait using cfg_attr
, the doc_cfg
feature gate is not documented. A minimal example can be found here, but is summarised below:
Example:
#![feature(doc_auto_cfg)]
#[cfg_attr(feature = "debug", derive(Debug))]
pub struct Test();
Generates:
Expectation:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment