diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-12-16 17:46:29 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-12-16 17:46:29 +0530 |
| commit | d91c34463731ffc4cb74229bc215967b076953be (patch) | |
| tree | ecd413371e11c2f74a02cc168f17b53991bcae84 /src/test/rustdoc | |
| parent | b20f427391e9ca6c9a0439df77dfc938c0ba59da (diff) | |
| parent | eb2572106374ba39b5787cf2495782f4538a4c24 (diff) | |
| download | rust-d91c34463731ffc4cb74229bc215967b076953be.tar.gz rust-d91c34463731ffc4cb74229bc215967b076953be.zip | |
Rollup merge of #30372 - sanxiyn:rustdoc-cfg, r=alexcrichton
Fix #30252.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-30252.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-30252.rs b/src/test/rustdoc/issue-30252.rs new file mode 100644 index 00000000000..11d161fe188 --- /dev/null +++ b/src/test/rustdoc/issue-30252.rs @@ -0,0 +1,16 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags:--test --cfg feature="bar" + +/// ```rust +/// assert_eq!(cfg!(feature = "bar"), true); +/// ``` +pub fn foo() {} |
