Skip to content

Commit 7150e35

Browse files
Add regression test for rust-lang#113982
1 parent 2e5642d commit 7150e35

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![crate_name = "colors"]
2+
3+
pub struct Color;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// aux-build: issue-113982-doc_auto_cfg-reexport-foreign.rs
2+
3+
#![feature(no_core, doc_auto_cfg)]
4+
#![no_core]
5+
#![crate_name = "foo"]
6+
7+
extern crate colors;
8+
9+
// @has 'foo/index.html' '//*[@class="stab portability"]' 'Non-colors'
10+
// @has 'foo/struct.Color.html' '//*[@class="stab portability"]' \
11+
// 'Available on non-crate feature colors only.'
12+
#[cfg(not(feature = "colors"))]
13+
pub use colors::*;
14+
15+
// @has 'foo/index.html' '//*[@class="stab portability"]' 'Non-fruits'
16+
// @has 'foo/struct.Red.html' '//*[@class="stab portability"]' \
17+
// 'Available on non-crate feature fruits only.'
18+
#[cfg(not(feature = "fruits"))]
19+
pub use colors::Color as Red;

0 commit comments

Comments
 (0)