]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/extern-prelude-extern-crate-cfg.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / extern-prelude-extern-crate-cfg.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // compile-flags:--cfg my_feature
3
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() {}