diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/rustdoc/cfg-rustdoc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/rustdoc/cfg-rustdoc.rs b/src/test/ui/rustdoc/cfg-rustdoc.rs new file mode 100644 index 000000000..dd8e1ed97 --- /dev/null +++ b/src/test/ui/rustdoc/cfg-rustdoc.rs @@ -0,0 +1,6 @@ +#[cfg(doc)] +pub struct Foo; + +fn main() { + let f = Foo; //~ ERROR +} |