]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | // build-pass (FIXME(62277): could be check-pass?) |
0bf4aa26 XL |
2 | // compile-flags:--cfg my_feature |
3 | ||
0bf4aa26 XL |
4 | #![no_std] |
5 | ||
6 | #[cfg(my_feature)] | |
7 | extern crate std; | |
8 | ||
9 | mod m { | |
10 | #[cfg(my_feature)] | |
11 | fn conditional() { | |
12 | std::vec::Vec::<u8>::new(); // OK | |
13 | } | |
14 | } | |
15 | ||
16 | fn main() {} |